Fixed spacing
authorumherirrender <umherirrender_de.wp@web.de>
Mon, 29 Sep 2014 18:46:19 +0000 (20:46 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Mon, 29 Sep 2014 18:46:19 +0000 (20:46 +0200)
- Added newline at end of file
- Removed double spaces/newlines
- Added space after if/function and parentheses/brackets
- Removed space before comma/cast
- Fixed indent of some lines

Change-Id: I29867ffdffdfb7d2b56997e9393497c7dc12f7d3

17 files changed:
includes/MovePage.php
includes/OutputPage.php
includes/PrefixSearch.php
includes/cache/bloom/BloomCache.php
includes/db/DatabaseMssql.php
includes/filerepo/file/File.php
includes/mail/MailAddress.php
includes/pager/IndexPager.php
includes/resourceloader/ResourceLoaderWikiModule.php
includes/site/SiteSQLStore.php
includes/specials/SpecialCategories.php
includes/specials/SpecialWantedfiles.php
includes/upload/UploadBase.php
tests/phpunit/includes/changes/EnhancedChangesListTest.php
tests/phpunit/includes/config/HashConfigTest.php
tests/phpunit/includes/mail/MailAddressTest.php
tests/phpunit/includes/specialpage/SpecialPageFactoryTest.php

index cea91d2..5c9490b 100644 (file)
@@ -423,5 +423,4 @@ class MovePage {
                $logid = $logEntry->insert();
                $logEntry->publish( $logid );
        }
-
-}
\ No newline at end of file
+}
index 3321747..e1b6e0e 100644 (file)
@@ -2769,7 +2769,6 @@ $templates
                                );
                                $context = new ResourceLoaderContext( $resourceLoader, new FauxRequest( $query ) );
 
-
                                // Extract modules that know they're empty and see if we have one or more
                                // raw modules
                                $isRaw = false;
index 718750f..1f684fb 100644 (file)
@@ -195,7 +195,7 @@ abstract class PrefixSearch {
                // Unlike SpecialPage itself, we want the canonical forms of both
                // canonical and alias title forms...
                $keys = array();
-               foreach ( SpecialPageFactory::getNames() as $page  ) {
+               foreach ( SpecialPageFactory::getNames() as $page ) {
                        $keys[$wgContLang->caseFold( $page )] = $page;
                }
 
index 236db95..a15b461 100644 (file)
@@ -318,6 +318,6 @@ class EmptyBloomCache extends BloomCache {
        }
 
        protected function doGetStatus( $virtualKey ) {
-               return array( 'lastID' => null, 'asOfTime' => null, 'epoch' => null ) ;
+               return array( 'lastID' => null, 'asOfTime' => null, 'epoch' => null );
        }
 }
index af3cc72..ab8d366 100644 (file)
@@ -692,7 +692,7 @@ class DatabaseMssql extends DatabaseBase {
                        if ( !is_null( $identity ) ) {
                                // then we want to get the identity column value we were assigned and save it off
                                $row = $ret->fetchObject();
-                               if( is_object( $row ) ){
+                               if ( is_object( $row ) ) {
                                        $this->mInsertId = $row->$identity;
                                }
                        }
index b574c5e..7563d64 100644 (file)
@@ -1237,7 +1237,7 @@ abstract class File {
                        $that = $this;
                        $work = new PoolCounterWorkViaCallback( 'GetLocalFileCopy', sha1( $this->getName() ),
                                array(
-                                       'doWork' => function() use ( $that ) {
+                                       'doWork' => function () use ( $that ) {
                                                return $that->getLocalRefPath();
                                        }
                                )
index 6817908..7a228bd 100644 (file)
@@ -38,7 +38,7 @@ class MailAddress {
        function __construct( $address, $name = null, $realName = null ) {
                if ( is_object( $address ) && $address instanceof User ) {
                        // Old calling format, now deprecated
-                       wfDeprecated( __METHOD__ . ' with a User object' , '1.24' );
+                       wfDeprecated( __METHOD__ . ' with a User object', '1.24' );
                        $this->address = $address->getEmail();
                        $this->name = $address->getName();
                        $this->realName = $address->getRealName();
index ce6dc50..9398e30 100644 (file)
@@ -478,7 +478,6 @@ abstract class IndexPager extends ContextSource implements Pager {
                        $attrs['class'] = "mw-{$type}link";
                }
 
-
                return Linker::linkKnown(
                        $this->getTitle(),
                        $text,
index 99a8739..2a1736d 100644 (file)
@@ -170,7 +170,7 @@ abstract class ResourceLoaderWikiModule extends ResourceLoaderModule {
                $modifiedTime = 1; // wfTimestamp() interprets 0 as "now"
                $titleInfo = $this->getTitleInfo( $context );
                if ( count( $titleInfo ) ) {
-                       $mtimes = array_map( function( $value ) {
+                       $mtimes = array_map( function ( $value ) {
                                return $value['timestamp'];
                        }, $titleInfo );
                        $modifiedTime = max( $modifiedTime, max( $mtimes ) );
index d133468..e5d05be 100644 (file)
@@ -395,7 +395,7 @@ class SiteSQLStore implements SiteStore {
                $dbw->startAtomic( __METHOD__ );
                $ok = $dbw->delete( 'sites', '*', __METHOD__ );
                $ok = $dbw->delete( 'site_identifiers', '*', __METHOD__ ) && $ok;
-               $dbw->endAtomic( __METHOD__);
+               $dbw->endAtomic( __METHOD__ );
 
                $this->reset();
 
index 371cd9f..bf6bb35 100644 (file)
@@ -192,7 +192,7 @@ class CategoryPager extends AlphabeticPager {
                                        $this->msg( 'categories' )->text(),
                                        Xml::inputLabel(
                                                $this->msg( 'categoriesfrom' )->text(),
-                                               'from', 'from', 20, $from, array( 'class' => 'mw-ui-input-inline') ) .
+                                               'from', 'from', 20, $from, array( 'class' => 'mw-ui-input-inline' ) ) .
                                                ' ' .
                                                Xml::submitButton(
                                                        $this->msg( 'allpagessubmit' )->text(),
index 937a503..16127d9 100644 (file)
@@ -102,7 +102,7 @@ class WantedFilesPage extends WantedQueryPage {
         * @return boolean
         */
        protected function existenceCheck( Title $title ) {
-               return (bool) wfFindFile( $title );
+               return (bool)wfFindFile( $title );
        }
 
        function getQueryInfo() {
index 2419299..7741c35 100644 (file)
@@ -767,7 +767,7 @@ abstract class UploadBase {
                rsort( $sizes );
 
                foreach ( $sizes as $size ) {
-                       $jobs []= new ThumbnailRenderJob( $this->getLocalFile()->getTitle(), array(
+                       $jobs[] = new ThumbnailRenderJob( $this->getLocalFile()->getTitle(), array(
                                'transformParams' => array( 'width' => $size ),
                        ) );
                }
index 40a11d2..7a82680 100644 (file)
@@ -31,7 +31,7 @@ class EnhancedChangesListTest extends MediaWikiLangTestCase {
                        'mediawiki.special.changeslist',
                        $styleModules,
                        'has mediawiki.special.changeslist'
-                );
+               );
 
                $this->assertContains(
                        'mediawiki.special.changeslist.enhanced',
@@ -75,10 +75,10 @@ class EnhancedChangesListTest extends MediaWikiLangTestCase {
                $this->assertEquals( '', $html );
        }
 
-         /**
-          * @todo more tests for actual formatting, this is more of a smoke test
-          */
-         public function testEndRecentChangesList() {
+       /**
+        * @todo more tests for actual formatting, this is more of a smoke test
+        */
+       public function testEndRecentChangesList() {
                $enhancedChangesList = $this->newEnhancedChangesList();
                $enhancedChangesList->beginRecentChangesList();
 
@@ -92,7 +92,7 @@ class EnhancedChangesListTest extends MediaWikiLangTestCase {
 
                preg_match_all( '/td class="mw-enhanced-rc-nested"/', $html, $matches );
                $this->assertCount( 2, $matches[0] );
-         }
+       }
 
        /**
         * @return EnhancedChangesList
index 3ad3bfb..06973b0 100644 (file)
@@ -60,4 +60,4 @@ class HashConfigTest extends MediaWikiTestCase {
                $conf->set( 'one', '3' );
                $this->assertEquals( '3', $conf->get( 'one' ) );
        }
-}
\ No newline at end of file
+}
index 76566eb..dd8ab3e 100644 (file)
@@ -60,5 +60,4 @@ class MailAddressTest extends MediaWikiTestCase {
                $ma = new MailAddress( 'some@email.com', 'UserName', 'A real name' );
                $this->assertEquals( $ma->toString(), (string)$ma );
        }
-
-}
\ No newline at end of file
+}
index 4619c2e..42602dc 100644 (file)
@@ -35,10 +35,10 @@ class SpecialPageFactoryTest extends MediaWikiTestCase {
        public function specialPageProvider() {
                return array(
                        'class name' => array( 'SpecialAllPages', false ),
-                       'closure' => array( function() {
+                       'closure' => array( function () {
                                return new SpecialAllPages();
                        }, false ),
-                       'function' => array( array( $this, 'newSpecialAllPages' ), false  ),
+                       'function' => array( array( $this, 'newSpecialAllPages' ), false ),
                );
        }