[MediaWiki-commits] [Gerrit] mediawiki...CentralNotice[master]: Use short array syntax - special
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/358049 ) Change subject: Use short array syntax - special .. Use short array syntax - special Done by phpcbf over composer fix Change-Id: If3aea4ddf3e66d56781e3a219becaa9657ccd49d --- M special/SpecialBannerAllocation.php M special/SpecialBannerLoader.php M special/SpecialCentralNotice.php M special/SpecialCentralNoticeBanners.php M special/SpecialCentralNoticeLogs.php M special/SpecialGlobalAllocation.php M special/SpecialHideBanners.php 7 files changed, 392 insertions(+), 392 deletions(-) Approvals: Umherirrender: Looks good to me, approved jenkins-bot: Verified Thiemo Mättig (WMDE): Looks good to me, approved diff --git a/special/SpecialBannerAllocation.php b/special/SpecialBannerAllocation.php index 242778d..bb37a0e 100644 --- a/special/SpecialBannerAllocation.php +++ b/special/SpecialBannerAllocation.php @@ -83,9 +83,9 @@ $this->setHeaders(); // Output ResourceLoader module for styling and javascript functions - $out->addModules( array( + $out->addModules( [ 'ext.centralNotice.adminUi', - ) ); + ] ); // Initialize error variable $this->centralNoticeError = false; @@ -94,24 +94,24 @@ $out->addWikiMsg( 'centralnotice-summary' ); // Begin Banners tab content - $out->addHTML( Html::openElement( 'div', array( 'id' => 'preferences' ) ) ); + $out->addHTML( Html::openElement( 'div', [ 'id' => 'preferences' ] ) ); $htmlOut = ''; // Begin Allocation selection fieldset - $htmlOut .= Html::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); + $htmlOut .= Html::openElement( 'fieldset', [ 'class' => 'prefsection' ] ); - $htmlOut .= Html::openElement( 'form', array( 'method' => 'get' ) ); - $htmlOut .= Html::element( 'h2', array(), $this->msg( 'centralnotice-view-allocation' )->text() ); + $htmlOut .= Html::openElement( 'form', [ 'method' => 'get' ] ); + $htmlOut .= Html::element( 'h2', [], $this->msg( 'centralnotice-view-allocation' )->text() ); $htmlOut .= Xml::tags( 'p', null, $this->msg( 'centralnotice-allocation-instructions' )->text() ); - $htmlOut .= Html::openElement( 'table', array( 'id' => 'envpicker', 'cellpadding' => 7 ) ); + $htmlOut .= Html::openElement( 'table', [ 'id' => 'envpicker', 'cellpadding' => 7 ] ); $htmlOut .= Html::openElement( 'tr' ); $htmlOut .= Xml::tags( 'td', - array( 'style' => 'width: 20%;' ), + [ 'style' => 'width: 20%;' ], $this->msg( 'centralnotice-project-name' )->text() ); $htmlOut .= Html::openElement( 'td' ); - $htmlOut .= Html::openElement( 'select', array( 'name' => 'project' ) ); + $htmlOut .= Html::openElement( 'select', [ 'name' => 'project' ] ); foreach ( $wgNoticeProjects as $value ) { $htmlOut .= Xml::option( $value, $value, $value === $this->project ); @@ -122,7 +122,7 @@ $htmlOut .= Html::closeElement( 'tr' ); $htmlOut .= Html::openElement( 'tr' ); $htmlOut .= Xml::tags( 'td', - array( 'valign' => 'top' ), + [ 'valign' => 'top' ], $this->msg( 'centralnotice-project-lang' )->text() ); $htmlOut .= Html::openElement( 'td' ); @@ -136,7 +136,7 @@ ksort( $languages ); - $htmlOut .= Html::openElement( 'select', array( 'name' => 'language' ) ); + $htmlOut .= Html::openElement( 'select', [ 'name' => 'language' ] ); foreach ( $languages as $code => $name ) { $htmlOut .= Xml::option( @@ -148,13 +148,13 @@ $htmlOut .= Html::closeElement( 'td' ); $htmlOut .= Html::closeElement( 'tr' ); $htmlOut .= Html::openElement( 'tr' ); - $htmlOut .= Xml::tags( 'td', array(), $this->msg( 'centralnotice-country' )->text() ); + $htmlOut .= Xml::tags( 'td', [], $this->msg( 'centralnotice-country' )->text() ); $htmlOut .= Html::openElement( 'td' ); $userLanguageCode = $this->getLanguage()->getCode(); $countries = GeoTarget::getCountriesList( $userLanguageCode ); - $htmlOut .= Html::openElement( 'select', array( 'name' => 'country' ) ); + $htmlOut .= Html::openElement( 'select', [ 'name' => 'country' ] ); foreach ( $countries as $code => $name ) {
[MediaWiki-commits] [Gerrit] mediawiki...CentralNotice[master]: Use short array syntax - special
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/358049 ) Change subject: Use short array syntax - special .. Use short array syntax - special Change-Id: If3aea4ddf3e66d56781e3a219becaa9657ccd49d --- M special/SpecialBannerAllocation.php M special/SpecialBannerLoader.php M special/SpecialCentralNotice.php M special/SpecialCentralNoticeBanners.php M special/SpecialCentralNoticeLogs.php M special/SpecialGlobalAllocation.php M special/SpecialHideBanners.php 7 files changed, 392 insertions(+), 392 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralNotice refs/changes/49/358049/1 diff --git a/special/SpecialBannerAllocation.php b/special/SpecialBannerAllocation.php index 242778d..bb37a0e 100644 --- a/special/SpecialBannerAllocation.php +++ b/special/SpecialBannerAllocation.php @@ -83,9 +83,9 @@ $this->setHeaders(); // Output ResourceLoader module for styling and javascript functions - $out->addModules( array( + $out->addModules( [ 'ext.centralNotice.adminUi', - ) ); + ] ); // Initialize error variable $this->centralNoticeError = false; @@ -94,24 +94,24 @@ $out->addWikiMsg( 'centralnotice-summary' ); // Begin Banners tab content - $out->addHTML( Html::openElement( 'div', array( 'id' => 'preferences' ) ) ); + $out->addHTML( Html::openElement( 'div', [ 'id' => 'preferences' ] ) ); $htmlOut = ''; // Begin Allocation selection fieldset - $htmlOut .= Html::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); + $htmlOut .= Html::openElement( 'fieldset', [ 'class' => 'prefsection' ] ); - $htmlOut .= Html::openElement( 'form', array( 'method' => 'get' ) ); - $htmlOut .= Html::element( 'h2', array(), $this->msg( 'centralnotice-view-allocation' )->text() ); + $htmlOut .= Html::openElement( 'form', [ 'method' => 'get' ] ); + $htmlOut .= Html::element( 'h2', [], $this->msg( 'centralnotice-view-allocation' )->text() ); $htmlOut .= Xml::tags( 'p', null, $this->msg( 'centralnotice-allocation-instructions' )->text() ); - $htmlOut .= Html::openElement( 'table', array( 'id' => 'envpicker', 'cellpadding' => 7 ) ); + $htmlOut .= Html::openElement( 'table', [ 'id' => 'envpicker', 'cellpadding' => 7 ] ); $htmlOut .= Html::openElement( 'tr' ); $htmlOut .= Xml::tags( 'td', - array( 'style' => 'width: 20%;' ), + [ 'style' => 'width: 20%;' ], $this->msg( 'centralnotice-project-name' )->text() ); $htmlOut .= Html::openElement( 'td' ); - $htmlOut .= Html::openElement( 'select', array( 'name' => 'project' ) ); + $htmlOut .= Html::openElement( 'select', [ 'name' => 'project' ] ); foreach ( $wgNoticeProjects as $value ) { $htmlOut .= Xml::option( $value, $value, $value === $this->project ); @@ -122,7 +122,7 @@ $htmlOut .= Html::closeElement( 'tr' ); $htmlOut .= Html::openElement( 'tr' ); $htmlOut .= Xml::tags( 'td', - array( 'valign' => 'top' ), + [ 'valign' => 'top' ], $this->msg( 'centralnotice-project-lang' )->text() ); $htmlOut .= Html::openElement( 'td' ); @@ -136,7 +136,7 @@ ksort( $languages ); - $htmlOut .= Html::openElement( 'select', array( 'name' => 'language' ) ); + $htmlOut .= Html::openElement( 'select', [ 'name' => 'language' ] ); foreach ( $languages as $code => $name ) { $htmlOut .= Xml::option( @@ -148,13 +148,13 @@ $htmlOut .= Html::closeElement( 'td' ); $htmlOut .= Html::closeElement( 'tr' ); $htmlOut .= Html::openElement( 'tr' ); - $htmlOut .= Xml::tags( 'td', array(), $this->msg( 'centralnotice-country' )->text() ); + $htmlOut .= Xml::tags( 'td', [], $this->msg( 'centralnotice-country' )->text() ); $htmlOut .= Html::openElement( 'td' ); $userLanguageCode = $this->getLanguage()->getCode(); $countries = GeoTarget::getCountriesList( $userLanguageCode ); - $htmlOut .= Html::openElement( 'select', array( 'name' => 'country' ) ); + $htmlOut .= Html::openElement( 'select', [ 'name' => 'country' ] ); foreach ( $countries as $code => $name ) { $htmlOut .= Xml::option( $name, $code, $code