Fix indenting and newlines
authorFomafix <fomafix@googlemail.com>
Mon, 1 May 2017 16:35:36 +0000 (18:35 +0200)
committerFomafix <fomafix@googlemail.com>
Wed, 7 Nov 2018 16:15:15 +0000 (17:15 +0100)
Like suggested in https://www.mediawiki.org/wiki/Manual:Coding_conventions#Line_continuation

Change-Id: I86db3c24ffc69737c6917cfc68300ff4695961cd

includes/libs/MultiHttpClient.php
includes/media/JpegHandler.php
includes/specials/SpecialWatchlist.php
languages/classes/LanguageCrh.php
languages/classes/LanguageGan.php
languages/classes/LanguageKk.php
languages/classes/LanguageZh.php

index 36f49e0..6ce8f45 100644 (file)
@@ -438,7 +438,7 @@ class MultiHttpClient implements LoggerAwareInterface {
                if ( !$this->multiHandle ) {
                        if ( !function_exists( 'curl_multi_init' ) ) {
                                throw new Exception( "PHP cURL function curl_multi_init missing. " .
-                                                                        "Check https://www.mediawiki.org/wiki/Manual:CURL" );
+                                       "Check https://www.mediawiki.org/wiki/Manual:CURL" );
                        }
                        $cmh = curl_multi_init();
                        curl_multi_setopt( $cmh, CURLMOPT_PIPELINING, (int)$this->usePipelining );
index 91bed4a..f7de5f5 100644 (file)
@@ -232,7 +232,7 @@ class JpegHandler extends ExifBitmapHandler {
         * @return bool
         */
        public function swapICCProfile( $filepath, array $colorSpaces,
-                                                                       array $oldProfileStrings, $profileFilepath
+               array $oldProfileStrings, $profileFilepath
        ) {
                global $wgExiftool;
 
index 0ca6f93..0fc6e13 100644 (file)
@@ -155,7 +155,7 @@ class SpecialWatchlist extends ChangesListSpecialPage {
                                        'activeValue' => false,
                                        'default' => $this->getUser()->getBoolOption( 'extendwatchlist' ),
                                        'queryCallable' => function ( $specialClassName, $ctx, $dbr, &$tables,
-                                                                                                 &$fields, &$conds, &$query_options, &$join_conds ) {
+                                                       &$fields, &$conds, &$query_options, &$join_conds ) {
                                                $nonRevisionTypes = [ RC_LOG ];
                                                Hooks::run( 'SpecialWatchlistGetNonRevisionTypes', [ &$nonRevisionTypes ] );
                                                if ( $nonRevisionTypes ) {
@@ -211,7 +211,7 @@ class SpecialWatchlist extends ChangesListSpecialPage {
                        ],
                        'default' => ChangesListStringOptionsFilterGroup::NONE,
                        'queryCallable' => function ( $specialPageClassName, $context, $dbr,
-                                                                                 &$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) {
+                                       &$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) {
                                if ( $selectedValues === [ 'seen' ] ) {
                                        $conds[] = $dbr->makeList( [
                                                'wl_notificationtimestamp IS NULL',
index 27af14b..1da3a54 100644 (file)
@@ -64,9 +64,10 @@ class CrhConverter extends LanguageConverter {
         * @param array $flags
         */
        function __construct( Language $langobj, $maincode,
-                                                               $variants = [],
-                                                               $variantfallbacks = [],
-                                                               $flags = [] ) {
+               $variants = [],
+               $variantfallbacks = [],
+               $flags = []
+       ) {
                parent::__construct( $langobj, $maincode,
                        $variants, $variantfallbacks, $flags );
 
index f315473..170ff9a 100644 (file)
@@ -36,14 +36,16 @@ class GanConverter extends LanguageConverter {
                $variants = [],
                $variantfallbacks = [],
                $flags = [],
-               $manualLevel = [] ) {
+               $manualLevel = []
+       ) {
                $this->mDescCodeSep = ':';
                $this->mDescVarSep = ';';
                parent::__construct( $langobj, $maincode,
                        $variants,
                        $variantfallbacks,
                        $flags,
-                       $manualLevel );
+                       $manualLevel
+               );
                $names = [
                        'gan' => '原文',
                        'gan-hans' => '简体',
@@ -94,7 +96,8 @@ class LanguageGan extends LanguageZh {
                $this->mConverter = new GanConverter( $this, 'gan',
                        $variants, $variantfallbacks,
                        [],
-                       $ml );
+                       $ml
+               );
        }
 
        /**
index ea35ac8..d829ead 100644 (file)
@@ -45,9 +45,10 @@ class KkConverter extends LanguageConverter {
         * @param array $flags
         */
        function __construct( Language $langobj, $maincode,
-                                                               $variants = [],
-                                                               $variantfallbacks = [],
-                                                               $flags = [] ) {
+               $variants = [],
+               $variantfallbacks = [],
+               $flags = []
+       ) {
                parent::__construct( $langobj, $maincode,
                        $variants, $variantfallbacks, $flags );
 
@@ -315,8 +316,8 @@ class KkConverter extends LanguageConverter {
                                        // is matched the word to front vowels?
                                        // exclude a words matched to е, э, г, к, к, қ,
                                        // them should be without hamza
-                                       if ( preg_match( '/[' . $front . ']/u', $m[0] )
-                                               && !preg_match( '/[' . $excludes . ']/u', $m[0] )
+                                       if ( preg_match( '/[' . $front . ']/u', $m[0] ) &&
+                                               !preg_match( '/[' . $excludes . ']/u', $m[0] )
                                        ) {
                                                $ret .= preg_replace( '/[' . $letters . ']+/u', H_HAMZA . '$0', $m[0] );
                                        } else {
index 27d6972..455678d 100644 (file)
@@ -34,17 +34,19 @@ class ZhConverter extends LanguageConverter {
         * @param array $manualLevel
         */
        function __construct( Language $langobj, $maincode,
-                                                               $variants = [],
-                                                               $variantfallbacks = [],
-                                                               $flags = [],
-                                                               $manualLevel = [] ) {
+               $variants = [],
+               $variantfallbacks = [],
+               $flags = [],
+               $manualLevel = []
+       ) {
                $this->mDescCodeSep = ':';
                $this->mDescVarSep = ';';
                parent::__construct( $langobj, $maincode,
-                                                                       $variants,
-                                                                       $variantfallbacks,
-                                                                       $flags,
-                                                                       $manualLevel );
+                       $variants,
+                       $variantfallbacks,
+                       $flags,
+                       $manualLevel
+               );
                $names = [
                        'zh' => '原文',
                        'zh-hans' => '简体',
@@ -143,9 +145,10 @@ class LanguageZh extends LanguageZh_hans {
                ];
 
                $this->mConverter = new ZhConverter( $this, 'zh',
-                                                               $variants, $variantfallbacks,
-                                                               [],
-                                                               $ml );
+                       $variants, $variantfallbacks,
+                       [],
+                       $ml
+               );
        }
 
        /**