Fixed spacing
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 8 Dec 2013 19:31:47 +0000 (20:31 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sun, 8 Dec 2013 19:31:47 +0000 (20:31 +0100)
- Added space after foreach
- Added/Removed spaces inside arrays

Change-Id: Ia8775824fa33976b1a4dab43e07f1bff0c57479c

includes/GlobalFunctions.php
includes/ImagePage.php
includes/WikiPage.php
includes/installer/PostgresUpdater.php
includes/media/SVG.php
includes/media/SVGMetadataExtractor.php
tests/phpunit/includes/ExceptionTest.php
tests/phpunit/includes/api/ApiBaseTest.php
tests/phpunit/includes/api/ApiWatchTest.php

index 819b076..5a1ef6c 100644 (file)
@@ -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,
index 2c303c9..93cef53 100644 (file)
@@ -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 );
index 9507e5f..f8277e0 100644 (file)
@@ -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
index e8a1c80..3ecb79b 100644 (file)
@@ -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 ''" ),
                );
        }
 
index 17891fc..b15d57b 100644 (file)
@@ -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;
                                        }
index 3f0edb3..361eb94 100644 (file)
@@ -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;
index e2a3711..eaef1f7 100644 (file)
@@ -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 );
                }
index bfb75ef..a05c4fa 100644 (file)
@@ -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"
                );
        }
index 87f5190..e49c6c0 100644 (file)
@@ -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] );
                        }
                }