From: umherirrender Date: Sun, 8 Dec 2013 19:31:47 +0000 (+0100) Subject: Fixed spacing X-Git-Tag: 1.31.0-rc.0~17707 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=661c5c3f0198508ea6dc3c050f91ee1e64f6db04;p=lhc%2Fweb%2Fwiklou.git Fixed spacing - Added space after foreach - Added/Removed spaces inside arrays Change-Id: Ia8775824fa33976b1a4dab43e07f1bff0c57479c --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 819b076751..5a1ef6cedb 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3375,8 +3375,8 @@ function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1, 28 => 's', 29 => 't', 30 => 'u', 31 => 'v', 32 => 'w', 33 => 'x', 34 => 'y', 35 => 'z', - '0' => 0, '1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, - '6' => 6, '7' => 7, '8' => 8, '9' => 9, 'a' => 10, 'b' => 11, + '0' => 0, '1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, + '6' => 6, '7' => 7, '8' => 8, '9' => 9, 'a' => 10, 'b' => 11, 'c' => 12, 'd' => 13, 'e' => 14, 'f' => 15, 'g' => 16, 'h' => 17, 'i' => 18, 'j' => 19, 'k' => 20, 'l' => 21, 'm' => 22, 'n' => 23, 'o' => 24, 'p' => 25, 'q' => 26, 'r' => 27, 's' => 28, 't' => 29, diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 2c303c9f8a..93cef53fee 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -1009,7 +1009,7 @@ EOT } else { $display = $curLang; } - $opts = XML::Option( $display, $curLang, true ) . $opts; + $opts = XML::Option( $display, $curLang, true ) . $opts; } $select = Html::rawElement( 'select', array( 'id' => 'mw-imglangselector', 'name' => 'lang' ), $opts ); diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 9507e5fcf4..f8277e09eb 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -1660,7 +1660,8 @@ class WikiPage implements Page, IDBAccessObject { * @since 1.21 */ public function doEditContent( Content $content, $summary, $flags = 0, $baseRevId = false, - User $user = null, $serialisation_format = null ) { + User $user = null, $serialisation_format = null + ) { global $wgUser, $wgUseAutomaticEditSummaries, $wgUseRCPatrol, $wgUseNPPatrol; // Low-level sanity check diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index e8a1c80570..3ecb79b111 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -399,7 +399,7 @@ class PostgresUpdater extends DatabaseUpdater { array( 'tsearchFixes' ), // 1.23 - array( 'addPgField', 'recentchanges', 'rc_source', "TEXT NOT NULL DEFAULT ''" ), + array( 'addPgField', 'recentchanges', 'rc_source', "TEXT NOT NULL DEFAULT ''" ), ); } diff --git a/includes/media/SVG.php b/includes/media/SVG.php index 17891fcdc0..b15d57b385 100644 --- a/includes/media/SVG.php +++ b/includes/media/SVG.php @@ -94,7 +94,7 @@ class SvgHandler extends ImageHandler { if ( $metadata ) { $metadata = $this->unpackMetadata( $metadata ); if ( isset( $metadata['translations'] ) ) { - foreach( $metadata['translations'] as $lang => $langType ) { + foreach ( $metadata['translations'] as $lang => $langType ) { if ( $langType === SvgReader::LANG_FULL_MATCH ) { $langList[] = $lang; } diff --git a/includes/media/SVGMetadataExtractor.php b/includes/media/SVGMetadataExtractor.php index 3f0edb3bdd..361eb9450c 100644 --- a/includes/media/SVGMetadataExtractor.php +++ b/includes/media/SVGMetadataExtractor.php @@ -267,7 +267,7 @@ class SVGReader { if ( !is_null( $sysLang ) && $sysLang !== '' ) { // See http://www.w3.org/TR/SVG/struct.html#SystemLanguageAttribute $langList = explode( ',', $sysLang ); - foreach( $langList as $langItem ) { + foreach ( $langList as $langItem ) { $langItem = trim( $langItem ); if ( Language::isWellFormedLanguageTag( $langItem ) ) { $this->languages[$langItem] = self::LANG_FULL_MATCH; diff --git a/tests/phpunit/includes/ExceptionTest.php b/tests/phpunit/includes/ExceptionTest.php index e2a3711a05..eaef1f7afb 100644 --- a/tests/phpunit/includes/ExceptionTest.php +++ b/tests/phpunit/includes/ExceptionTest.php @@ -72,13 +72,13 @@ class ExceptionTest extends MediaWikiTestCase { $testCases = array(); foreach ( array( 'Exception', 'MWException' ) as $exClass ) { $exTests = array( - array( 'string', $exClass, 'id' ), - array( 'string', $exClass, 'file' ), - array( 'integer', $exClass, 'line' ), - array( 'string', $exClass, 'message' ), - array( 'null', $exClass, 'url' ), + array( 'string', $exClass, 'id' ), + array( 'string', $exClass, 'file' ), + array( 'integer', $exClass, 'line' ), + array( 'string', $exClass, 'message' ), + array( 'null', $exClass, 'url' ), # Backtrace only enabled with wgLogExceptionBacktrace = true - array( 'array', $exClass, 'backtrace' ), + array( 'array', $exClass, 'backtrace' ), ); $testCases = array_merge( $testCases, $exTests ); } diff --git a/tests/phpunit/includes/api/ApiBaseTest.php b/tests/phpunit/includes/api/ApiBaseTest.php index bfb75ef95e..a05c4fa831 100644 --- a/tests/phpunit/includes/api/ApiBaseTest.php +++ b/tests/phpunit/includes/api/ApiBaseTest.php @@ -26,7 +26,7 @@ class ApiBaseTest extends ApiTestCase { public function testRequireOnlyOneParameterZero() { $mock = new MockApi(); $mock->requireOnlyOneParameter( - array( "filename" => "foo.txt","enablechunks" => 0 ), + array( "filename" => "foo.txt", "enablechunks" => 0 ), "filename", "enablechunks" ); } diff --git a/tests/phpunit/includes/api/ApiWatchTest.php b/tests/phpunit/includes/api/ApiWatchTest.php index 87f5190fe0..e49c6c0e4e 100644 --- a/tests/phpunit/includes/api/ApiWatchTest.php +++ b/tests/phpunit/includes/api/ApiWatchTest.php @@ -61,11 +61,11 @@ class ApiWatchTest extends ApiTestCase { 'list' => 'watchlist' ), $data ); $this->assertArrayHasKey( 'query', $data[0] ); $this->assertArrayHasKey( 'watchlist', $data[0]['query'] ); - foreach( $data[0]['query']['watchlist'] as $index => $item ) { + foreach ( $data[0]['query']['watchlist'] as $index => $item ) { // Previous tests may insert an invalid title // like ":ApiEditPageTest testNonTextEdit", which // can't be cleared. - if ( strpos( $item['title'] , ':' ) === 0 ) { + if ( strpos( $item['title'], ':' ) === 0 ) { unset( $data[0]['query']['watchlist'][$index] ); } }