Fix some space-related phpcs warnings in includes/
authorRicordisamoa <ricordisamoa@openmailbox.org>
Fri, 14 Aug 2015 21:17:01 +0000 (23:17 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Sat, 15 Aug 2015 08:56:03 +0000 (08:56 +0000)
Change-Id: I7cf7206696a5e77bc02e3630d1d88d4c176ea844

12 files changed:
includes/OutputPage.php
includes/WebStart.php
includes/dao/DBAccessObjectUtils.php
includes/exception/MWExceptionHandler.php
includes/filerepo/LocalRepo.php
includes/installer/PostgresUpdater.php
includes/libs/SamplingStatsdClient.php
includes/media/WebP.php
includes/resourceloader/ResourceLoaderStartUpModule.php
includes/specials/SpecialSearch.php
includes/utils/BatchRowWriter.php
includes/widget/NamespaceInputWidget.php

index f90f91b..8d4720b 100644 (file)
@@ -3146,7 +3146,7 @@ class OutputPage extends ContextSource {
                        // Already handled by getExternalHeadScripts()
                        return '';
                }
-               return  $this->getScriptsForBottomQueue();
+               return $this->getScriptsForBottomQueue();
        }
 
        /**
index 80db15b..f5a4f93 100644 (file)
@@ -140,4 +140,4 @@ if ( !defined( 'MW_NO_SETUP' ) ) {
 # Multiple DBs or commits might be used; keep the request as transactional as possible
 if ( isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] === 'POST' ) {
        ignore_user_abort( true );
-}
\ No newline at end of file
+}
index 58f991f..ad7804c 100644 (file)
@@ -56,4 +56,4 @@ class DBAccessObjectUtils {
 
                return array( $index, $options );
        }
-}
\ No newline at end of file
+}
index 663b0ff..def653f 100644 (file)
@@ -562,7 +562,7 @@ TXT;
                $json = self::jsonSerializeException( $e, false, FormatJson::ALL_OK );
                if ( $json !== false ) {
                        $logger = LoggerFactory::getInstance( "{$channel}-json" );
-                       $logger->error( $json, array( 'private' => true )  );
+                       $logger->error( $json, array( 'private' => true ) );
                }
 
                Hooks::run( 'LogException', array( $e, $suppressed ) );
index 1852912..6a2c064 100644 (file)
@@ -595,7 +595,7 @@ class LocalRepo extends FileRepo {
                        wfDebug( __METHOD__ . ": skipped because storage uses sha1 paths\n" );
                        return Status::newGood();
                } else {
-                       return call_user_func_array('parent::' . $function, $args );
+                       return call_user_func_array( 'parent::' . $function, $args );
                }
        }
 }
index 4410271..e1063b0 100644 (file)
@@ -408,7 +408,7 @@ class PostgresUpdater extends DatabaseUpdater {
                        array( 'changeFieldPurgeTable', 'l10n_cache', 'lc_value', 'bytea',
                                "replace(lc_value,'\','\\\\')::bytea" ),
                        // 1.23.9
-                       array( 'rebuildTextSearch'),
+                       array( 'rebuildTextSearch' ),
 
                        // 1.24
                        array( 'addPgField', 'page_props', 'pp_sortkey', 'float NULL' ),
index d7791a8..f7afdb5 100644 (file)
@@ -43,7 +43,7 @@ class SamplingStatsdClient extends StatsdClient {
                                if ( $item->getSampleRate() === 1 ) {
                                        $item->setSampleRate( $sampleRate );
                                }
-                       });
+                       } );
                }
 
                return $data;
index 05d12c4..ff4dcee 100644 (file)
@@ -219,8 +219,8 @@ class WebPHandler extends BitmapHandler {
 
                return array(
                        'compression' => 'unknown',
-                       'animated' => ($flags[1] & self::VP8X_ANIM) == self::VP8X_ANIM,
-                       'transparency' => ($flags[1] & self::VP8X_ALPHA) == self::VP8X_ALPHA,
+                       'animated' => ( $flags[1] & self::VP8X_ANIM ) == self::VP8X_ANIM,
+                       'transparency' => ( $flags[1] & self::VP8X_ALPHA ) == self::VP8X_ALPHA,
                        'width' => ( $width[1] & 0xFFFFFF ) + 1,
                        'height' => ( $height[1] & 0xFFFFFF ) + 1
                );
@@ -271,7 +271,7 @@ class WebPHandler extends BitmapHandler {
                $ser = $image->getMetadata();
                if ( $ser ) {
                        $metadata = unserialize( $ser );
-                       if ( isset($metadata['animated']) && $metadata['animated'] === true ) {
+                       if ( isset( $metadata['animated'] ) && $metadata['animated'] === true ) {
                                return true;
                        }
                }
index 64678f4..c704c1a 100644 (file)
@@ -349,7 +349,7 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule {
                $pairs = array_map( function ( $value ) {
                        $value = FormatJson::encode( $value, ResourceLoader::inDebugMode(), FormatJson::ALL_OK );
                        // Fix indentation
-                       $value = str_replace( "\n", "\n\t", $value  );
+                       $value = str_replace( "\n", "\n\t", $value );
                        return $value;
                }, array(
                        '$VARS.wgLegacyJavaScriptGlobals' => $this->getConfig()->get( 'LegacyJavaScriptGlobals' ),
index f50dd09..af2dc94 100644 (file)
@@ -488,7 +488,7 @@ class SpecialSearch extends SpecialPage {
                return Html::rawElement(
                        'div',
                        array( 'class' => 'searchdidyoumean' ),
-                       $this->msg( 'search-rewritten')->rawParams( $rewritten, $original )->escaped()
+                       $this->msg( 'search-rewritten' )->rawParams( $rewritten, $original )->escaped()
                );
        }
 
index 9daeab1..04c00a3 100644 (file)
@@ -49,7 +49,7 @@ class BatchRowWriter {
 
        /**
         * @param array $updates Array of arrays each containing two keys, 'primaryKey'
-     *  and 'changes'. primaryKey must contain a map of column names to values
+        *  and 'changes'. primaryKey must contain a map of column names to values
         *  sufficient to uniquely identify the row changes must contain a map of column
         *  names to update values to apply to the row.
         */
index 2d69ed7..f10ea70 100644 (file)
@@ -103,7 +103,7 @@ class NamespaceInputWidget extends \OOUI\Widget {
                $namespaceOptions = \Html::namespaceSelectorOptions( $namespaceOptionsParams );
 
                $options = array();
-               foreach( $namespaceOptions as $id => $name ) {
+               foreach ( $namespaceOptions as $id => $name ) {
                        $options[] = array(
                                'data' => (string)$id,
                                'label' => $name,