*
* @var array
*/
- private static $coreTrackingCategories = array(
+ private static $coreTrackingCategories = [
'index-category',
'noindex-category',
'duplicate-args-category',
'broken-file-category',
'node-count-exceeded-category',
'expansion-depth-exceeded-category',
- );
+ 'restricted-displaytitle-ignored',
+ ];
function execute( $par ) {
$this->setHeaders();
$this->outputHeader();
$this->getOutput()->allowClickjacking();
$this->getOutput()->addHTML(
- Html::openElement( 'table', array( 'class' => 'mw-datatable',
- 'id' => 'mw-trackingcategories-table' ) ) . "\n" .
+ Html::openElement( 'table', [ 'class' => 'mw-datatable',
+ 'id' => 'mw-trackingcategories-table' ] ) . "\n" .
"<thead><tr>
<th>" .
$this->msg( 'trackingcategories-msg' )->escaped() . "
$batch->execute();
foreach ( $trackingCategories as $catMsg => $data ) {
- $allMsgs = array();
+ $allMsgs = [];
$catDesc = $catMsg . '-desc';
$catMsgTitleText = Linker::link(
$this->getOutput()->addHTML(
Html::openElement( 'tr' ) .
- Html::openElement( 'td', array( 'class' => 'mw-trackingcategories-name' ) ) .
+ Html::openElement( 'td', [ 'class' => 'mw-trackingcategories-name' ] ) .
$this->getLanguage()->commaList( array_unique( $allMsgs ) ) .
Html::closeElement( 'td' ) .
- Html::openElement( 'td', array( 'class' => 'mw-trackingcategories-msg' ) ) .
+ Html::openElement( 'td', [ 'class' => 'mw-trackingcategories-msg' ] ) .
$catMsgTitleText .
Html::closeElement( 'td' ) .
- Html::openElement( 'td', array( 'class' => 'mw-trackingcategories-desc' ) ) .
+ Html::openElement( 'td', [ 'class' => 'mw-trackingcategories-desc' ] ) .
$descMsg->parse() .
Html::closeElement( 'td' ) .
Html::closeElement( 'tr' )
ExtensionRegistry::getInstance()->getAttribute( 'TrackingCategories' ),
$this->getConfig()->get( 'TrackingCategories' ) // deprecated
);
- $trackingCategories = array();
+ $trackingCategories = [];
foreach ( $categories as $catMsg ) {
/*
* Check if the tracking category varies by namespace
* If it does vary, show pages considering all namespaces
*/
$msgObj = $this->msg( $catMsg )->inContentLanguage();
- $allCats = array();
+ $allCats = [];
$catMsgTitle = Title::makeTitleSafe( NS_MEDIAWIKI, $catMsg );
if ( !$catMsgTitle ) {
continue;
}
}
}
- $trackingCategories[$catMsg] = array(
+ $trackingCategories[$catMsg] = [
'cats' => $allCats,
'msg' => $catMsgTitle,
- );
+ ];
}
return $trackingCategories;