Remove spaces between parentheses in function calls
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 17 Mar 2013 15:13:22 +0000 (16:13 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sun, 17 Mar 2013 15:13:22 +0000 (16:13 +0100)
Change-Id: If8ec665a01b566fa5189dfcc810b2d9a17f371e1

25 files changed:
includes/DataUpdate.php
includes/GlobalFunctions.php
includes/SqlDataUpdate.php
includes/WikiFilePage.php
includes/WikiPage.php
includes/api/ApiUpload.php
includes/content/Content.php
includes/content/CssContent.php
includes/content/JavaScriptContent.php
includes/content/TextContent.php
includes/content/WikitextContent.php
includes/installer/CliInstaller.php
includes/installer/DatabaseUpdater.php
includes/installer/WebInstaller.php
includes/installer/WebInstallerOutput.php
includes/media/Exif.php
includes/media/SVGMetadataExtractor.php
includes/media/XMPInfo.php
includes/specials/SpecialListusers.php
languages/Language.php
maintenance/benchmarks/Benchmarker.php
maintenance/findHooks.php
maintenance/fuzz-tester.php
maintenance/parse.php
maintenance/userOptions.inc

index 114ae14..c1076b2 100644 (file)
@@ -34,7 +34,7 @@ abstract class DataUpdate implements DeferrableUpdate {
        /**
         * Constructor
         */
-       public function __construct( ) {
+       public function __construct() {
                # noop
        }
 
index 0feddd2..016736f 100644 (file)
@@ -2710,7 +2710,7 @@ function wfDl( $extension, $fileName = null ) {
  * @param varargs
  * @return String
  */
-function wfEscapeShellArg( ) {
+function wfEscapeShellArg() {
        wfInitShellLocale();
 
        $args = func_get_args();
index c01cdd0..79dcdc5 100644 (file)
@@ -48,7 +48,7 @@ abstract class SqlDataUpdate extends DataUpdate {
        public function __construct( $withTransaction = true ) {
                global $wgAntiLockFlags;
 
-               parent::__construct( );
+               parent::__construct();
 
                if ( $wgAntiLockFlags & ALF_NO_LINK_LOCK ) {
                        $this->mOptions = array();
index fa23072..5e603d3 100644 (file)
@@ -107,7 +107,7 @@ class WikiFilePage extends WikiPage {
        /**
         * @return bool
         */
-       public function isRedirect( ) {
+       public function isRedirect() {
                $this->loadFile();
                if ( $this->mFile->isLocal() ) {
                        return parent::isRedirect();
index 6e24527..8d9d740 100644 (file)
@@ -460,7 +460,7 @@ class WikiPage implements Page, IDBAccessObject {
         *
         * @return bool
         */
-       public function isRedirect( ) {
+       public function isRedirect() {
                $content = $this->getContent();
                if ( !$content ) return false;
 
@@ -821,7 +821,7 @@ class WikiPage implements Page, IDBAccessObject {
                        $content = $this->getContent();
                }
 
-               if ( !$content || $content->isRedirect( ) ) {
+               if ( !$content || $content->isRedirect() ) {
                        return false;
                }
 
index deeb1c1..2dcf392 100644 (file)
@@ -81,7 +81,7 @@ class ApiUpload extends ApiBase {
 
                // Check if the uploaded file is sane
                if ( $this->mParams['chunk'] ) {
-                       $maxSize = $this->mUpload->getMaxUploadSize( );
+                       $maxSize = $this->mUpload->getMaxUploadSize();
                        if( $this->mParams['filesize'] > $maxSize ) {
                                $this->dieUsage( 'The file you submitted was too large', 'file-too-large' );
                        }
@@ -440,8 +440,8 @@ class ApiUpload extends ApiBase {
        /**
         * Performs file verification, dies on error.
         */
-       protected function verifyUpload( ) {
-               $verification = $this->mUpload->verifyUpload( );
+       protected function verifyUpload() {
+               $verification = $this->mUpload->verifyUpload();
                if ( $verification['status'] === UploadBase::OK ) {
                        return;
                } else {
index 9b59a27..72729b0 100644 (file)
@@ -231,7 +231,7 @@ interface Content {
         *
         * @return Content. A copy of this object
         */
-       public function copy( );
+       public function copy();
 
        /**
         * Returns true if this content is countable as a "real" wiki page, provided
index 75f1aa0..569d122 100644 (file)
@@ -54,10 +54,10 @@ class CssContent extends TextContent {
                return new CssContent( $pst );
        }
 
-       protected function getHtml( ) {
+       protected function getHtml() {
                $html = "";
                $html .= "<pre class=\"mw-code mw-css\" dir=\"ltr\">\n";
-               $html .= $this->getHighlightHtml( );
+               $html .= $this->getHighlightHtml();
                $html .= "\n</pre>\n";
 
                return $html;
index 5221168..9cd947f 100644 (file)
@@ -55,10 +55,10 @@ class JavaScriptContent extends TextContent {
                return new JavaScriptContent( $pst );
        }
 
-       protected function getHtml( ) {
+       protected function getHtml() {
                $html = "";
                $html .= "<pre class=\"mw-code mw-js\" dir=\"ltr\">\n";
-               $html .= $this->getHighlightHtml( );
+               $html .= $this->getHighlightHtml();
                $html .= "\n</pre>\n";
 
                return $html;
index 91ba6ef..8fafcb6 100644 (file)
@@ -72,8 +72,8 @@ class TextContent extends AbstractContent {
         *
         * @return int The size
         */
-       public function getSize( ) {
-               $text = $this->getNativeData( );
+       public function getSize() {
+               $text = $this->getNativeData();
                return strlen( $text );
        }
 
@@ -89,7 +89,7 @@ class TextContent extends AbstractContent {
        public function isCountable( $hasLinks = null ) {
                global $wgArticleCountMethod;
 
-               if ( $this->isRedirect( ) ) {
+               if ( $this->isRedirect() ) {
                        return false;
                }
 
@@ -105,7 +105,7 @@ class TextContent extends AbstractContent {
         *
         * @return string: the raw text
         */
-       public function getNativeData( ) {
+       public function getNativeData() {
                $text = $this->mText;
                return $text;
        }
@@ -115,7 +115,7 @@ class TextContent extends AbstractContent {
         *
         * @return string: the raw text
         */
-       public function getTextForSearchIndex( ) {
+       public function getTextForSearchIndex() {
                return $this->getNativeData();
        }
 
@@ -127,7 +127,7 @@ class TextContent extends AbstractContent {
         *
         * @return string|false: the raw text, or null if the conversion failed
         */
-       public function getWikitextForTransclusion( ) {
+       public function getWikitextForTransclusion() {
                $wikitext = $this->convert( CONTENT_MODEL_WIKITEXT, 'lossy' );
 
                if ( $wikitext ) {
@@ -248,7 +248,7 @@ class TextContent extends AbstractContent {
         *
         * @return string an HTML representation of the content's markup
         */
-       protected function getHighlightHtml( ) {
+       protected function getHighlightHtml() {
                # TODO: make Highlighter interface, use highlighter here, if available
                return htmlspecialchars( $this->getNativeData() );
        }
index 7d3cd37..8be4eba 100644 (file)
@@ -231,7 +231,7 @@ class WikitextContent extends TextContent {
        public function isCountable( $hasLinks = null, Title $title = null ) {
                global $wgArticleCountMethod;
 
-               if ( $this->isRedirect( ) ) {
+               if ( $this->isRedirect() ) {
                        return false;
                }
 
index 997255d..bb7e877 100644 (file)
@@ -191,7 +191,7 @@ class CliInstaller extends Installer {
                }
        }
 
-       public function envCheckPath( ) {
+       public function envCheckPath() {
                if ( !$this->specifiedScriptPath ) {
                        $this->showMessage( 'config-no-cli-uri', $this->getVar( "wgScriptPath" ) );
                }
index 4b4bc23..b88ae61 100644 (file)
@@ -402,7 +402,7 @@ abstract class DatabaseUpdater {
 
                if( $this->fileHandle ) {
                        $this->skipSchema = false;
-                       $this->writeSchemaUpdateFile( );
+                       $this->writeSchemaUpdateFile();
                        $this->setAppliedUpdates( "$wgVersion-schema", $this->updatesSkipped );
                }
 
index a325507..35d649b 100644 (file)
@@ -1086,7 +1086,7 @@ class WebInstaller extends Installer {
        /**
         * @return bool
         */
-       public function envCheckPath( ) {
+       public function envCheckPath() {
                // PHP_SELF isn't available sometimes, such as when PHP is CGI but
                // cgi.fix_pathinfo is disabled. In that case, fall back to SCRIPT_NAME
                // to get the path to the current script... hopefully it's reliable. SIGH
index afbb9ab..d61d843 100644 (file)
@@ -157,7 +157,7 @@ class WebInstallerOutput {
         * "<link>" to index.php?css=foobar for the "<head>"
         * @return String
         */
-       private function getCssUrl( ) {
+       private function getCssUrl() {
                return Html::linkedStyle( $_SERVER['PHP_SELF'] . '?css=' . $this->getDir() );
        }
 
index c50b2f0..20b84d5 100644 (file)
@@ -363,7 +363,7 @@ class Exif {
         * As an alternative approach, some of this could be done in the validate phase
         * if we make up our own types like Exif::DATE.
         */
-       function collapseData( ) {
+       function collapseData() {
 
                $this->exifGPStoNumber( 'GPSLatitude' );
                $this->exifGPStoNumber( 'GPSDestLatitude' );
@@ -545,7 +545,7 @@ class Exif {
         *
         * @deprecated since 1.18
         */
-       function makeFormattedData( ) {
+       function makeFormattedData() {
                wfDeprecated( __METHOD__, '1.18' );
                $this->mFormattedExifData = FormatMetadata::getFormattedData(
                        $this->mFilteredExifData );
index f8cd6df..e07fd86 100644 (file)
@@ -278,7 +278,7 @@ class SVGReader {
         *
         * The parser has to be in the start element of "<svg>"
         */
-       private function handleSVGAttribs( ) {
+       private function handleSVGAttribs() {
                $defaultWidth = self::DEFAULT_WIDTH;
                $defaultHeight = self::DEFAULT_HEIGHT;
                $aspect = 1.0;
index 01b07db..102547f 100644 (file)
@@ -31,7 +31,7 @@ class XMPInfo {
        /** get the items array
         * @return Array XMP item configuration array.
         */
-       public static function getItems ( ) {
+       public static function getItems () {
                if( !self::$ranHooks ) {
                        // This is for if someone makes a custom metadata extension.
                        // For example, a medical wiki might want to decode DICOM xmp properties.
index ed21396..d253a4d 100644 (file)
@@ -206,7 +206,7 @@ class UsersPager extends AlphabeticPager {
        /**
         * @return string
         */
-       function getPageHeader( ) {
+       function getPageHeader() {
                global $wgScript;
 
                list( $self ) = explode( '/', $this->getTitle()->getPrefixedDBkey() );
index 01751db..1c52da5 100644 (file)
@@ -531,7 +531,7 @@ class Language {
        /**
         * Resets all of the namespace caches. Mainly used for testing
         */
-       public function resetNamespaces( ) {
+       public function resetNamespaces() {
                $this->namespaceNames = null;
                $this->mNamespaceIds = null;
                $this->namespaceAliases = null;
index c198e0f..98b35b5 100644 (file)
@@ -75,7 +75,7 @@ abstract class Benchmarker extends Maintenance {
                }
        }
 
-       public function getFormattedResults( ) {
+       public function getFormattedResults() {
                $ret = '';
                foreach( $this->results as $res ) {
                        // show function with args
index 9ad4df4..778da5a 100644 (file)
@@ -115,7 +115,7 @@ class FindHooks extends Maintenance {
         */
        private function getHooksFromDoc( $doc ) {
                if ( $this->hasOption( 'online' ) ) {
-                       return $this->getHooksFromOnlineDoc( );
+                       return $this->getHooksFromOnlineDoc();
                } else {
                        return $this->getHooksFromLocalDoc( $doc );
                }
@@ -137,7 +137,7 @@ class FindHooks extends Maintenance {
         * Get hooks from www.mediawiki.org using the API
         * @return array of documented hooks
         */
-       private function getHooksFromOnlineDoc( ) {
+       private function getHooksFromOnlineDoc() {
                        // All hooks
                        $allhookdata = Http::get( 'http://www.mediawiki.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:MediaWiki_hooks&cmlimit=500&format=php' );
                        $allhookdata = unserialize( $allhookdata );
index 6bb44a1..4c03980 100644 (file)
@@ -1490,7 +1490,7 @@ class specialBlockmeTest extends pageTest {
        function __construct() {
                $this->pagePath = "index.php?title=Special:Blockme";
 
-               $this->params = array ( );
+               $this->params = array ();
 
                // sometimes we specify "ip", and sometimes we don't.
                if ( wikiFuzz::randnum( 1 ) == 0 ) {
index b0ab624..58e76b0 100644 (file)
@@ -109,7 +109,7 @@ class CLIParser extends Maintenance {
         *
         * @return Title object
         */
-       protected function getTitle( ) {
+       protected function getTitle() {
                $title =
                        $this->getOption( 'title' )
                        ? $this->getOption( 'title' )
index 2a06657..cbe6b05 100644 (file)
@@ -108,7 +108,7 @@ class userOptions {
                        return false;
                }
 
-               $this->{ $this->mMode } ( );
+               $this->{ $this->mMode } ();
                return true;
        }
 
@@ -117,7 +117,7 @@ class userOptions {
        #
 
        /** List default options and their value */
-       private function LISTER( ) {
+       private function LISTER() {
                $def = User::getDefaultOptions();
                ksort( $def );
                $maxOpt = 0;
@@ -130,7 +130,7 @@ class userOptions {
        }
 
        /** List options usage */
-       private function USAGER( ) {
+       private function USAGER() {
                $ret = array();
                $defaultOptions = User::getDefaultOptions();
 
@@ -181,7 +181,7 @@ class userOptions {
 
 
        /** Change our users options */
-       private function CHANGER( ) {
+       private function CHANGER() {
                $this->warn();
 
                // We list user by user_id from one of the slave database