From 489d793882cbce56248a8d2e1f762a6adaa2f67b Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 27 Nov 2014 18:03:07 +0100 Subject: [PATCH] Fixed spacing - Added/removed spaces around parenthesis - Added newline in empty blocks - Added space after switch/foreach/function - Use tabs at begin of line - Add newline at end of file Change-Id: I244cdb2c333489e1020931bf4ac5266a87439f0d --- includes/CdbCompat.php | 9 ++++++--- includes/PrefixSearch.php | 10 +++++----- includes/Status.php | 8 ++++---- includes/api/ApiOpenSearch.php | 2 +- includes/api/ApiQuerySearch.php | 2 +- includes/cache/LocalisationCache.php | 1 + includes/db/Database.php | 2 +- includes/db/LBFactory.php | 2 +- includes/filebackend/FSFileBackend.php | 4 ++-- includes/installer/DatabaseUpdater.php | 2 +- includes/installer/WebInstallerOutput.php | 2 +- includes/media/Bitmap.php | 2 +- includes/parser/MWTidy.php | 2 +- includes/parser/Parser.php | 4 ++-- includes/profiler/ProfilerStandard.php | 2 +- includes/profiler/ProfilerStub.php | 2 +- includes/profiler/ProfilerXhprof.php | 4 ++-- includes/profiler/SectionProfiler.php | 2 +- includes/profiler/output/ProfilerOutputDb.php | 2 +- includes/profiler/output/ProfilerOutputText.php | 4 ++-- includes/profiler/output/ProfilerOutputUdp.php | 6 +++--- includes/site/SiteListFileCache.php | 4 ++-- includes/site/SiteListFileCacheBuilder.php | 2 +- includes/utils/AutoloadGenerator.php | 4 ++-- maintenance/backupTextPass.inc | 4 ++-- tests/phpunit/includes/PrefixSearchTest.php | 10 +++++----- tests/phpunit/includes/db/DatabaseSqliteTest.php | 2 +- .../includes/media/FormatMetadataTest.php | 16 ++++++++-------- tests/phpunit/maintenance/backupTextPassTest.php | 2 +- 29 files changed, 61 insertions(+), 57 deletions(-) diff --git a/includes/CdbCompat.php b/includes/CdbCompat.php index 0c00b39e0e..0074cc96b0 100644 --- a/includes/CdbCompat.php +++ b/includes/CdbCompat.php @@ -29,14 +29,17 @@ /** * @deprecated since 1.25 */ -abstract class CdbReader extends \Cdb\Reader {} +abstract class CdbReader extends \Cdb\Reader { +} /** * @deprecated since 1.25 */ -abstract class CdbWriter extends \Cdb\Writer {} +abstract class CdbWriter extends \Cdb\Writer { +} /** * @deprecated since 1.25 */ -class CdbException extends \Cdb\Exception {} +class CdbException extends \Cdb\Exception { +} diff --git a/includes/PrefixSearch.php b/includes/PrefixSearch.php index a4e64ee63d..4df6a9e51e 100644 --- a/includes/PrefixSearch.php +++ b/includes/PrefixSearch.php @@ -199,19 +199,19 @@ abstract class PrefixSearch { return $this->pullFront( $key, $srchres ); } $redirectTargetsToRedirect = $this->redirectTargetsToRedirect( $srchres ); - if ( isset( $redirectTargetsToRedirect[ $target ] ) ) { + if ( isset( $redirectTargetsToRedirect[$target] ) ) { // The exact match and something in the results list are both redirects // to the same thing! In this case we'll pull the returned match to the // top following the same logic above. Again, it might not be a perfect // choice but it'll do. - return $this->pullFront( $redirectTargetsToRedirect[ $target ], $srchres ); + return $this->pullFront( $redirectTargetsToRedirect[$target], $srchres ); } } else { $redirectTargetsToRedirect = $this->redirectTargetsToRedirect( $srchres ); - if ( isset( $redirectTargetsToRedirect[ $string ] ) ) { + if ( isset( $redirectTargetsToRedirect[$string] ) ) { // The exact match is the target of a redirect already in the results list so remove // the redirect from the results list and push the exact match to the front - array_splice( $srchres, $redirectTargetsToRedirect[ $string ], 1 ); + array_splice( $srchres, $redirectTargetsToRedirect[$string], 1 ); array_unshift( $srchres, $string ); return $srchres; } @@ -242,7 +242,7 @@ abstract class PrefixSearch { if ( !$target ) { continue; } - $result[ $target ] = $key; + $result[$target] = $key; } return $result; } diff --git a/includes/Status.php b/includes/Status.php index 265eae1711..fb267bdeab 100644 --- a/includes/Status.php +++ b/includes/Status.php @@ -469,7 +469,7 @@ class Status { public function __toString() { $status = $this->isOK() ? "OK" : "Error"; if ( count( $this->errors ) ) { - $errorcount = "collected " . ( count($this->errors) ) . " error(s) on the way"; + $errorcount = "collected " . ( count( $this->errors ) ) . " error(s) on the way"; } else { $errorcount = "no errors detected"; } @@ -486,16 +486,16 @@ class Status { $errorcount, $valstr ); - if ( count ($this->errors ) > 0 ) { + if ( count( $this->errors ) > 0 ) { $hdr = sprintf( "+-%'-4s-+-%'-25s-+-%'-40s-+\n", "", "", "" ); $i = 1; $out .= "\n"; $out .= $hdr; - foreach( $this->getStatusArray() as $stat ) { + foreach ( $this->getStatusArray() as $stat ) { $out .= sprintf( "| %4d | %-25.25s | %-40.40s |\n", $i, $stat[0], - implode(" ", array_slice( $stat, 1 ) ) + implode( " ", array_slice( $stat, 1 ) ) ); $i += 1; } diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 4a9e216e3d..2235ba9592 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -59,7 +59,7 @@ class ApiOpenSearch extends ApiBase { } public function getCustomPrinter() { - switch( $this->getFormat() ) { + switch ( $this->getFormat() ) { case 'json': return $this->getMain()->createPrinterByName( 'json' . $this->fm ); diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index c6999df8e3..16a491e566 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -206,7 +206,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { $hasInterwikiResults = false; $totalhits = null; if ( $interwiki && $resultPageSet === null && $matches->hasInterwikiResults() ) { - foreach( $matches->getInterwikiResults() as $matches ) { + foreach ( $matches->getInterwikiResults() as $matches ) { $matches = $matches->getInterwikiResults(); $hasInterwikiResults = true; diff --git a/includes/cache/LocalisationCache.php b/includes/cache/LocalisationCache.php index 7d5450e7ea..c79d0089f7 100644 --- a/includes/cache/LocalisationCache.php +++ b/includes/cache/LocalisationCache.php @@ -23,6 +23,7 @@ use Cdb\Exception as CdbException; use Cdb\Reader as CdbReader; use Cdb\Writer as CdbWriter; + /** * Class for caching the contents of localisation files, Messages*.php * and *.i18n.php. diff --git a/includes/db/Database.php b/includes/db/Database.php index 6c53f6a16e..edce9184e5 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -1003,7 +1003,7 @@ abstract class DatabaseBase implements IDatabase { if ( $queryProf != '' ) { $queryStartTime = microtime( true ); $queryProfile = new ScopedCallback( - function() use ( $queryStartTime, $queryProf, $isMaster ) { + function () use ( $queryStartTime, $queryProf, $isMaster ) { $trxProfiler = Profiler::instance()->getTransactionProfiler(); $trxProfiler->recordQueryCompletion( $queryProf, $queryStartTime, $isMaster ); } diff --git a/includes/db/LBFactory.php b/includes/db/LBFactory.php index e049a5d4ae..fdf170367c 100644 --- a/includes/db/LBFactory.php +++ b/includes/db/LBFactory.php @@ -172,7 +172,7 @@ abstract class LBFactory { * @param array $args */ private function forEachLBCallMethod( $methodName, array $args = array() ) { - $this->forEachLB( function( LoadBalancer $loadBalancer, $methodName, array $args ) { + $this->forEachLB( function ( LoadBalancer $loadBalancer, $methodName, array $args ) { call_user_func_array( array( $loadBalancer, $methodName ), $args ); }, array( $methodName, $args ) ); } diff --git a/includes/filebackend/FSFileBackend.php b/includes/filebackend/FSFileBackend.php index 9aa4ca82f8..c00fb81fdf 100644 --- a/includes/filebackend/FSFileBackend.php +++ b/includes/filebackend/FSFileBackend.php @@ -454,10 +454,10 @@ class FSFileBackend extends FileBackendStore { wfDebugLog( 'FSFileBackend', __METHOD__ . ": cannot create directory $dir" ); $status->fatal( 'directorycreateerror', $params['dir'] ); // fails on races } elseif ( !is_writable( $dir ) ) { - wfDebugLog( 'FSFileBackend', __METHOD__ . ": directory $dir is read-only" ); + wfDebugLog( 'FSFileBackend', __METHOD__ . ": directory $dir is read-only" ); $status->fatal( 'directoryreadonlyerror', $params['dir'] ); } elseif ( !is_readable( $dir ) ) { - wfDebugLog( 'FSFileBackend', __METHOD__ . ": directory $dir is not readable" ); + wfDebugLog( 'FSFileBackend', __METHOD__ . ": directory $dir is not readable" ); $status->fatal( 'directorynotreadableerror', $params['dir'] ); } $this->untrapWarnings(); diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index a5540dbb11..c34d09e570 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -1073,7 +1073,7 @@ abstract class DatabaseUpdater { $out = $wgProfiler['output']; if ( $out === 'db' ) { $profileToDb = true; - } elseif( is_array( $out ) && in_array( 'db', $out ) ) { + } elseif ( is_array( $out ) && in_array( 'db', $out ) ) { $profileToDb = true; } } diff --git a/includes/installer/WebInstallerOutput.php b/includes/installer/WebInstallerOutput.php index 8ff3d2f9d8..44ca7d3001 100644 --- a/includes/installer/WebInstallerOutput.php +++ b/includes/installer/WebInstallerOutput.php @@ -298,7 +298,7 @@ class WebInstallerOutput { plain(); - foreach( explode( '----', $message ) as $section ) { + foreach ( explode( '----', $message ) as $section ) { echo '
'; echo $this->parent->parse( $section, true ); echo '
'; diff --git a/includes/media/Bitmap.php b/includes/media/Bitmap.php index 0292af8bfa..3c23ab9f15 100644 --- a/includes/media/Bitmap.php +++ b/includes/media/Bitmap.php @@ -344,7 +344,7 @@ class BitmapHandler extends TransformationalImageHandler { $src_image = call_user_func( $loader, $params['srcPath'] ); - $rotation = function_exists( 'imagerotate' ) && !isset( $params['disableRotation'] ) ? $this->getRotation( $image ) : 0; + $rotation = function_exists( 'imagerotate' ) && !isset( $params['disableRotation'] ) ? $this->getRotation( $image ) : 0; list( $width, $height ) = $this->extractPreRotationDimensions( $params, $rotation ); $dst_image = imagecreatetruecolor( $width, $height ); diff --git a/includes/parser/MWTidy.php b/includes/parser/MWTidy.php index ff62e9bd14..3cb35f7fc9 100644 --- a/includes/parser/MWTidy.php +++ b/includes/parser/MWTidy.php @@ -172,7 +172,7 @@ class MWTidy { if ( $wgTidyInternal ) { if ( wfIsHHVM() ) { if ( $stderr ) { - throw new MWException( __METHOD__.": error text return from HHVM tidy is not supported" ); + throw new MWException( __METHOD__ . ": error text return from HHVM tidy is not supported" ); } return self::hhvmClean( $text, $retval ); } else { diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 1b926c468f..7ea57becc6 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -532,14 +532,14 @@ class Parser { // Add on template profiling data $dataByFunc = $this->mProfiler->getFunctionStats(); - uasort( $dataByFunc, function( $a, $b ) { + uasort( $dataByFunc, function ( $a, $b ) { return $a['real'] < $b['real']; // descending order } ); $profileReport = "Transclusion expansion time report (%,ms,calls,template)\n"; foreach ( array_slice( $dataByFunc, 0, 10 ) as $item ) { $profileReport .= sprintf( "%6.2f%% %8.3f %6d - %s\n", $item['%real'], $item['real'], $item['calls'], - htmlspecialchars($item['name'] ) ); + htmlspecialchars( $item['name'] ) ); } $text .= "\n\n"; diff --git a/includes/profiler/ProfilerStandard.php b/includes/profiler/ProfilerStandard.php index 87706e6abc..ffcd7d91a9 100644 --- a/includes/profiler/ProfilerStandard.php +++ b/includes/profiler/ProfilerStandard.php @@ -222,7 +222,7 @@ class ProfilerStandard extends Profiler { $this->profileIn( $section ); $that = $this; - return new ScopedCallback( function() use ( $that, $section ) { + return new ScopedCallback( function () use ( $that, $section ) { $that->profileOut( $section ); } ); } diff --git a/includes/profiler/ProfilerStub.php b/includes/profiler/ProfilerStub.php index 2db06e4abb..9a7ec8c3ff 100644 --- a/includes/profiler/ProfilerStub.php +++ b/includes/profiler/ProfilerStub.php @@ -34,7 +34,7 @@ class ProfilerStub extends Profiler { } public function scopedProfileIn( $section ) { - return new ScopedCallback( function() { + return new ScopedCallback( function () { // no-op } ); } diff --git a/includes/profiler/ProfilerXhprof.php b/includes/profiler/ProfilerXhprof.php index d91b42915f..a4a7b30900 100644 --- a/includes/profiler/ProfilerXhprof.php +++ b/includes/profiler/ProfilerXhprof.php @@ -126,12 +126,12 @@ class ProfilerXhprof extends Profiler { if ( $exists ) { xhprof_frame_begin( $section ); - return new ScopedCallback( function() { + return new ScopedCallback( function () { xhprof_frame_end(); } ); } - return new ScopedCallback( function() { + return new ScopedCallback( function () { // no-op } ); } diff --git a/includes/profiler/SectionProfiler.php b/includes/profiler/SectionProfiler.php index 89eebbe27b..5591c997c3 100644 --- a/includes/profiler/SectionProfiler.php +++ b/includes/profiler/SectionProfiler.php @@ -59,7 +59,7 @@ class SectionProfiler { $this->profileInInternal( $section ); $that = $this; - return new ScopedCallback( function() use ( $that, $section ) { + return new ScopedCallback( function () use ( $that, $section ) { $that->profileOutInternal( $section ); } ); } diff --git a/includes/profiler/output/ProfilerOutputDb.php b/includes/profiler/output/ProfilerOutputDb.php index ab428027e9..76d62d2e95 100644 --- a/includes/profiler/output/ProfilerOutputDb.php +++ b/includes/profiler/output/ProfilerOutputDb.php @@ -38,7 +38,7 @@ class ProfilerOutputDb extends ProfilerOutput { // Initialize per-host profiling from config, back-compat if available if ( isset( $this->params['perHost'] ) ) { $this->perHost = $this->params['perHost']; - } elseif( $wgProfilePerHost ) { + } elseif ( $wgProfilePerHost ) { $this->perHost = $wgProfilePerHost; } } diff --git a/includes/profiler/output/ProfilerOutputText.php b/includes/profiler/output/ProfilerOutputText.php index b24bbefaa9..d37d74f06e 100644 --- a/includes/profiler/output/ProfilerOutputText.php +++ b/includes/profiler/output/ProfilerOutputText.php @@ -43,11 +43,11 @@ class ProfilerOutputText extends ProfilerOutput { // Filter out really tiny entries $min = $this->thresholdMs; - $stats = array_filter( $stats, function( $a ) use ( $min ) { + $stats = array_filter( $stats, function ( $a ) use ( $min ) { return $a['real'] > $min; } ); // Sort descending by time elapsed - usort( $stats, function( $a, $b ) { + usort( $stats, function ( $a, $b ) { return $a['real'] < $b['real']; } ); diff --git a/includes/profiler/output/ProfilerOutputUdp.php b/includes/profiler/output/ProfilerOutputUdp.php index d5c7e5c54f..7da03c11f9 100644 --- a/includes/profiler/output/ProfilerOutputUdp.php +++ b/includes/profiler/output/ProfilerOutputUdp.php @@ -45,19 +45,19 @@ class ProfilerOutputUdp extends ProfilerOutput { // Initialize port, host, and format from config, back-compat if available if ( isset( $this->params['udpport'] ) ) { $this->port = $this->params['udpport']; - } elseif( $wgUDPProfilerPort ) { + } elseif ( $wgUDPProfilerPort ) { $this->port = $wgUDPProfilerPort; } if ( isset( $this->params['udphost'] ) ) { $this->host = $this->params['udphost']; - } elseif( $wgUDPProfilerHost ) { + } elseif ( $wgUDPProfilerHost ) { $this->host = $wgUDPProfilerHost; } if ( isset( $this->params['udpformat'] ) ) { $this->format = $this->params['udpformat']; - } elseif( $wgUDPProfilerFormatString ) { + } elseif ( $wgUDPProfilerFormatString ) { $this->format = $wgUDPProfilerFormatString; } } diff --git a/includes/site/SiteListFileCache.php b/includes/site/SiteListFileCache.php index c0ecab1549..f2a95a828e 100644 --- a/includes/site/SiteListFileCache.php +++ b/includes/site/SiteListFileCache.php @@ -72,7 +72,7 @@ class SiteListFileCache { $sites = new SiteList(); // @todo lazy initialize the site objects in the site list (e.g. only when needed to access) - foreach( $data['sites'] as $siteArray ) { + foreach ( $data['sites'] as $siteArray ) { $sites[] = $this->newSiteFromArray( $siteArray ); } @@ -116,7 +116,7 @@ class SiteListFileCache { $site->setExtraData( $data['data'] ); $site->setExtraConfig( $data['config'] ); - foreach( $data['identifiers'] as $identifier ) { + foreach ( $data['identifiers'] as $identifier ) { $site->addLocalId( $identifier['type'], $identifier['key'] ); } diff --git a/includes/site/SiteListFileCacheBuilder.php b/includes/site/SiteListFileCacheBuilder.php index 0a71aae53e..7307a6f848 100644 --- a/includes/site/SiteListFileCacheBuilder.php +++ b/includes/site/SiteListFileCacheBuilder.php @@ -81,7 +81,7 @@ class SiteListFileCacheBuilder { $siteIdentifiers = $this->buildLocalIdentifiers( $site ); $identifiersArray = array(); - foreach( $siteIdentifiers as $identifier ) { + foreach ( $siteIdentifiers as $identifier ) { $identifiersArray[] = $identifier; } diff --git a/includes/utils/AutoloadGenerator.php b/includes/utils/AutoloadGenerator.php index 727f4851ee..4e65e11e8b 100644 --- a/includes/utils/AutoloadGenerator.php +++ b/includes/utils/AutoloadGenerator.php @@ -227,7 +227,7 @@ class ClassCollector { if ( is_string( $token ) ) { return; } - switch( $token[0] ) { + switch ( $token[0] ) { case T_NAMESPACE: case T_CLASS: case T_INTERFACE: @@ -241,7 +241,7 @@ class ClassCollector { * @param array */ protected function tryEndExpect( $token ) { - switch( $this->startToken[0] ) { + switch ( $this->startToken[0] ) { case T_NAMESPACE: if ( $token === ';' || $token === '{' ) { $this->namespace = $this->implodeTokens() . '\\'; diff --git a/maintenance/backupTextPass.inc b/maintenance/backupTextPass.inc index f13cb449cc..85ebd51bfe 100644 --- a/maintenance/backupTextPass.inc +++ b/maintenance/backupTextPass.inc @@ -895,10 +895,10 @@ class TextPassDumper extends BackupDumper { $this->thisPage .= $data; } } - elseif ( $this->lastName == "model" ) { + elseif ( $this->lastName == "model" ) { $this->thisRevModel .= $data; } - elseif ( $this->lastName == "format" ) { + elseif ( $this->lastName == "format" ) { $this->thisRevFormat .= $data; } diff --git a/tests/phpunit/includes/PrefixSearchTest.php b/tests/phpunit/includes/PrefixSearchTest.php index d0f6208034..e7370566e7 100644 --- a/tests/phpunit/includes/PrefixSearchTest.php +++ b/tests/phpunit/includes/PrefixSearchTest.php @@ -42,12 +42,12 @@ class PrefixSearchTest extends MediaWikiLangTestCase { $this->insertPage( 'Example Foo/Bar' ); $this->insertPage( 'Example/Baz' ); $this->insertPage( 'Redirect test', '#REDIRECT [[Redirect Test]]' ); - $this->insertPage( 'Redirect Test'); - $this->insertPage( 'Redirect Test Worse Result'); + $this->insertPage( 'Redirect Test' ); + $this->insertPage( 'Redirect Test Worse Result' ); $this->insertPage( 'Redirect test2', '#REDIRECT [[Redirect Test2]]' ); $this->insertPage( 'Redirect TEST2', '#REDIRECT [[Redirect Test2]]' ); - $this->insertPage( 'Redirect Test2'); - $this->insertPage( 'Redirect Test2 Worse Result'); + $this->insertPage( 'Redirect Test2' ); + $this->insertPage( 'Redirect Test2 Worse Result' ); $this->insertPage( 'Talk:Sandbox' ); $this->insertPage( 'Talk:Example' ); @@ -171,7 +171,7 @@ class PrefixSearchTest extends MediaWikiLangTestCase { array_shift( $case['results'] ); // And sometimes we expect a different last result $expected = isset( $case['offsetresult'] ) ? - array_merge( $case['results'], $case['offsetresult'] ): + array_merge( $case['results'], $case['offsetresult'] ) : $case['results']; $this->assertEquals( diff --git a/tests/phpunit/includes/db/DatabaseSqliteTest.php b/tests/phpunit/includes/db/DatabaseSqliteTest.php index 588e544087..d32c1a6e14 100644 --- a/tests/phpunit/includes/db/DatabaseSqliteTest.php +++ b/tests/phpunit/includes/db/DatabaseSqliteTest.php @@ -297,7 +297,7 @@ class DatabaseSqliteTest extends MediaWikiTestCase { $out = $wgProfiler['output']; if ( $out === 'db' ) { $profileToDb = true; - } elseif( is_array( $out ) && in_array( 'db', $out ) ) { + } elseif ( is_array( $out ) && in_array( 'db', $out ) ) { $profileToDb = true; } } diff --git a/tests/phpunit/includes/media/FormatMetadataTest.php b/tests/phpunit/includes/media/FormatMetadataTest.php index 97aa0a3dce..54758f9486 100644 --- a/tests/phpunit/includes/media/FormatMetadataTest.php +++ b/tests/phpunit/includes/media/FormatMetadataTest.php @@ -90,14 +90,14 @@ class FormatMetadataTest extends MediaWikiMediaTestCase { 'multiValue' => array( array( 'first', 'second', 'third', '_type' => 'ol' ), 'first' ), 'noType' => array( array( 'first', 'second', 'third' ), 'first' ), 'typeFirst' => array( array( '_type' => 'ol', 'first', 'second', 'third' ), 'first' ), - 'multilang' => array( - array( 'en' => 'first', 'de' => 'Erste', '_type' => 'lang' ), - array( 'en' => 'first', 'de' => 'Erste', '_type' => 'lang' ), - ), - 'multilang-multivalue' => array( - array( 'en' => array( 'first', 'second' ), 'de' => array( 'Erste', 'Zweite' ), '_type' => 'lang' ), - array( 'en' => 'first', 'de' => 'Erste', '_type' => 'lang' ), - ), + 'multilang' => array( + array( 'en' => 'first', 'de' => 'Erste', '_type' => 'lang' ), + array( 'en' => 'first', 'de' => 'Erste', '_type' => 'lang' ), + ), + 'multilang-multivalue' => array( + array( 'en' => array( 'first', 'second' ), 'de' => array( 'Erste', 'Zweite' ), '_type' => 'lang' ), + array( 'en' => 'first', 'de' => 'Erste', '_type' => 'lang' ), + ), ); } } diff --git a/tests/phpunit/maintenance/backupTextPassTest.php b/tests/phpunit/maintenance/backupTextPassTest.php index 26662d5de6..6ef2e23fec 100644 --- a/tests/phpunit/maintenance/backupTextPassTest.php +++ b/tests/phpunit/maintenance/backupTextPassTest.php @@ -608,4 +608,4 @@ class BackupTextPassTestModelHandler extends TextContentHandler { return strtoupper( $text ); } -} \ No newline at end of file +} -- 2.20.1