Matmarex has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/82097


Change subject: No spaces after (casts)
......................................................................

No spaces after (casts)

Also removed some unnecessary ones. I think I've caught them all.

The spaceless version already appears in core ~300 times (after
accounting for false positives when grepping). Some consistency would
be nice.

Change-Id: I607655b5f4366e66dc78730d5fd2f57ed8776cae
---
M includes/AjaxDispatcher.php
M includes/GlobalFunctions.php
M includes/Html.php
M includes/IP.php
M includes/Message.php
M includes/OutputPage.php
M includes/Pager.php
M includes/Sanitizer.php
M includes/Timestamp.php
M includes/UIDGenerator.php
M includes/User.php
M includes/actions/InfoAction.php
M includes/api/ApiOptions.php
M includes/api/ApiQuerySiteinfo.php
M includes/cache/GenderCache.php
M includes/debug/Debug.php
M includes/externalstore/ExternalStore.php
M includes/logging/DeleteLogFormatter.php
M includes/logging/LogEntry.php
M includes/media/XMPValidate.php
M includes/objectcache/SqlBagOStuff.php
M includes/parser/ParserOutput.php
M includes/profiler/Profiler.php
M includes/specials/SpecialRandomInCategory.php
M includes/specials/SpecialUserlogin.php
M includes/specials/SpecialWatchlist.php
M languages/Language.php
M languages/classes/LanguageSr.php
M languages/utils/CLDRPluralRuleEvaluator.php
29 files changed, 58 insertions(+), 58 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/97/82097/1

diff --git a/includes/AjaxDispatcher.php b/includes/AjaxDispatcher.php
index bddbeb3..c9ca128 100644
--- a/includes/AjaxDispatcher.php
+++ b/includes/AjaxDispatcher.php
@@ -111,7 +111,7 @@
                        wfHttpError(
                                400,
                                'Bad Request',
-                               "unknown function " . (string) $this->func_name
+                               "unknown function " . $this->func_name
                        );
                } elseif ( !User::isEveryoneAllowed( 'read' ) && 
!$wgUser->isAllowed( 'read' ) ) {
                        wfHttpError(
diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php
index 0060d15..3e7448d 100644
--- a/includes/GlobalFunctions.php
+++ b/includes/GlobalFunctions.php
@@ -3156,9 +3156,9 @@
                $sourceBase > 36 ||
                $destBase < 2 ||
                $destBase > 36 ||
-               $sourceBase != (int) $sourceBase ||
-               $destBase != (int) $destBase ||
-               $pad != (int) $pad ||
+               $sourceBase != (int)$sourceBase ||
+               $destBase != (int)$destBase ||
+               $pad != (int)$pad ||
                !preg_match( "/^[" . substr( 
'0123456789abcdefghijklmnopqrstuvwxyz', 0, $sourceBase ) . "]+$/i", $input )
        ) {
                return false;
@@ -3212,7 +3212,7 @@
                                $work += $digit;
 
                                if ( $workDigits || $work >= $destBase ) {
-                                       $workDigits[] = (int) ( $work / 
$destBase );
+                                       $workDigits[] = (int)( $work / 
$destBase );
                                }
                                $work %= $destBase;
                        }
diff --git a/includes/Html.php b/includes/Html.php
index 1d45e6a..3fea3e12 100644
--- a/includes/Html.php
+++ b/includes/Html.php
@@ -846,7 +846,7 @@
                # * text/xml
                # * application/xml
                # * Any mimetype with a subtype ending in +xml (this implicitly 
includes application/xhtml+xml)
-               return (bool) preg_match( 
'!^(text|application)/xml$|^.+/.+\+xml$!', $mimetype );
+               return (bool)preg_match( 
'!^(text|application)/xml$|^.+/.+\+xml$!', $mimetype );
        }
 
        /**
diff --git a/includes/IP.php b/includes/IP.php
index 0943606..2051e69 100644
--- a/includes/IP.php
+++ b/includes/IP.php
@@ -494,8 +494,8 @@
                                $n += pow( 2, 32 );
                                # On 32-bit platforms (and on Windows), 2^32 
does not fit into an int,
                                # so $n becomes a float. We convert it to 
string instead.
-                               if ( is_float ( $n ) ) {
-                                       $n = (string) $n;
+                               if ( is_float( $n ) ) {
+                                       $n = (string)$n;
                                }
                        }
                }
diff --git a/includes/Message.php b/includes/Message.php
index 74b4021..73e0af2 100644
--- a/includes/Message.php
+++ b/includes/Message.php
@@ -423,7 +423,7 @@
         * @since 1.20
         */
        public function setInterfaceMessageFlag( $value ) {
-               $this->interface = (bool) $value;
+               $this->interface = (bool)$value;
                return $this;
        }
 
@@ -434,7 +434,7 @@
         * @return Message: $this
         */
        public function useDatabase( $value ) {
-               $this->useDatabase = (bool) $value;
+               $this->useDatabase = (bool)$value;
                return $this;
        }
 
diff --git a/includes/OutputPage.php b/includes/OutputPage.php
index 83a7d3f..4185118 100644
--- a/includes/OutputPage.php
+++ b/includes/OutputPage.php
@@ -1534,7 +1534,7 @@
 
                $popts = $this->parserOptions();
                $oldTidy = $popts->setTidy( $tidy );
-               $popts->setInterfaceMessage( (bool) $interface );
+               $popts->setInterfaceMessage( (bool)$interface );
 
                $parserOutput = $wgParser->parse(
                        $text, $title, $popts,
@@ -2585,7 +2585,7 @@
        protected function makeResourceLoaderLink( $modules, $only, $useESI = 
false, array $extraQuery = array(), $loadCall = false ) {
                global $wgResourceLoaderUseESI;
 
-               $modules = (array) $modules;
+               $modules = (array)$modules;
 
                if ( !count( $modules ) ) {
                        return '';
diff --git a/includes/Pager.php b/includes/Pager.php
index 3ada0e2..4a14c7e 100644
--- a/includes/Pager.php
+++ b/includes/Pager.php
@@ -257,7 +257,7 @@
         * @param $limit Int|String
         */
        function setLimit( $limit ) {
-               $limit = (int) $limit;
+               $limit = (int)$limit;
                // WebRequest::getLimitOffset() puts a cap of 5000, so do same 
here.
                if ( $limit > 5000 ) {
                        $limit = 5000;
diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php
index d09e8d9..1d20f18 100644
--- a/includes/Sanitizer.php
+++ b/includes/Sanitizer.php
@@ -1802,6 +1802,6 @@
                $                      # End of string
                /ix"; // case Insensitive, eXtended
 
-               return (bool) preg_match( $HTML5_email_regexp, $addr );
+               return (bool)preg_match( $HTML5_email_regexp, $addr );
        }
 }
diff --git a/includes/Timestamp.php b/includes/Timestamp.php
index 94ff2f8..48d972c 100644
--- a/includes/Timestamp.php
+++ b/includes/Timestamp.php
@@ -252,7 +252,7 @@
                        if ( count( $data ) >= 2 ) {
                                // Combination hours and minutes.
                                $diff = abs( (int)$data[0] ) * 60 + 
(int)$data[1];
-                               if ( (int) $data[0] < 0 ) {
+                               if ( (int)$data[0] < 0 ) {
                                        $diff *= -1;
                                }
                        } else {
diff --git a/includes/UIDGenerator.php b/includes/UIDGenerator.php
index 20ec302..963e51a 100644
--- a/includes/UIDGenerator.php
+++ b/includes/UIDGenerator.php
@@ -239,9 +239,9 @@
                $data = explode( ' ', fgets( $handle ) ); // "<clk seq> <sec> 
<msec> <counter> <offset>"
                $clockChanged = false; // clock set back significantly?
                if ( count( $data ) == 5 ) { // last UID info already 
initialized
-                       $clkSeq = (int) $data[0] % $clockSeqSize;
-                       $prevTime = array( (int) $data[1], (int) $data[2] );
-                       $offset = (int) $data[4] % $counterSize; // random 
counter offset
+                       $clkSeq = (int)$data[0] % $clockSeqSize;
+                       $prevTime = array( (int)$data[1], (int)$data[2] );
+                       $offset = (int)$data[4] % $counterSize; // random 
counter offset
                        $counter = 0; // counter for UIDs with the same 
timestamp
                        // Delay until the clock reaches the time of the last 
ID.
                        // This detects any microtime() drift among processes.
@@ -251,7 +251,7 @@
                                $time = self::millitime();
                        } elseif ( $time == $prevTime ) {
                                // Bump the counter if there are timestamp 
collisions
-                               $counter = (int) $data[3] % $counterSize;
+                               $counter = (int)$data[3] % $counterSize;
                                if ( ++$counter >= $counterSize ) { // sanity 
(starts at 0)
                                        flock( $handle, LOCK_UN ); // abort
                                        throw new MWException( "Counter 
overflow for timestamp value." );
@@ -328,7 +328,7 @@
         */
        protected static function millitime() {
                list( $msec, $sec ) = explode( ' ', microtime() );
-               return array( (int) $sec, (int) ( $msec * 1000 ) );
+               return array( (int)$sec, (int)( $msec * 1000 ) );
        }
 
        function __destruct() {
diff --git a/includes/User.php b/includes/User.php
index 74d1e1f0..762d800 100644
--- a/includes/User.php
+++ b/includes/User.php
@@ -2763,7 +2763,7 @@
                        $this->mEditCount = $count;
                        wfProfileOut( __METHOD__ );
                }
-               return (int) $this->mEditCount;
+               return (int)$this->mEditCount;
        }
 
        /**
@@ -4399,7 +4399,7 @@
                // Pull from a slave to be less cruel to servers
                // Accuracy isn't the point anyway here
                $dbr = wfGetDB( DB_SLAVE );
-               $count = (int) $dbr->selectField(
+               $count = $dbr->selectField(
                        'revision',
                        'COUNT(rev_user)',
                        array( 'rev_user' => $this->getId() ),
diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php
index 704dee4..2c0a875 100644
--- a/includes/actions/InfoAction.php
+++ b/includes/actions/InfoAction.php
@@ -614,7 +614,7 @@
 
                if ( !$wgDisableCounters ) {
                        // Number of views
-                       $views = (int) $dbr->selectField(
+                       $views = (int)$dbr->selectField(
                                'page',
                                'page_counter',
                                array( 'page_id' => $id ),
@@ -624,7 +624,7 @@
                }
 
                // Number of page watchers
-               $watchers = (int) $dbr->selectField(
+               $watchers = (int)$dbr->selectField(
                        'watchlist',
                        'COUNT(*)',
                        array(
@@ -636,7 +636,7 @@
                $result['watchers'] = $watchers;
 
                // Total number of edits
-               $edits = (int) $dbr->selectField(
+               $edits = (int)$dbr->selectField(
                        'revision',
                        'COUNT(rev_page)',
                        array( 'rev_page' => $id ),
@@ -645,7 +645,7 @@
                $result['edits'] = $edits;
 
                // Total number of distinct authors
-               $authors = (int) $dbr->selectField(
+               $authors = (int)$dbr->selectField(
                        'revision',
                        'COUNT(DISTINCT rev_user_text)',
                        array( 'rev_page' => $id ),
@@ -657,7 +657,7 @@
                $threshold = $dbr->timestamp( time() - $wgRCMaxAge );
 
                // Recent number of edits
-               $edits = (int) $dbr->selectField(
+               $edits = (int)$dbr->selectField(
                        'revision',
                        'COUNT(rev_page)',
                        array(
@@ -669,7 +669,7 @@
                $result['recent_edits'] = $edits;
 
                // Recent number of distinct authors
-               $authors = (int) $dbr->selectField(
+               $authors = (int)$dbr->selectField(
                        'revision',
                        'COUNT(DISTINCT rev_user_text)',
                        array(
@@ -687,7 +687,7 @@
 
                        // Subpages of this page (redirects)
                        $conds['page_is_redirect'] = 1;
-                       $result['subpages']['redirects'] = (int) 
$dbr->selectField(
+                       $result['subpages']['redirects'] = 
(int)$dbr->selectField(
                                'page',
                                'COUNT(page_id)',
                                $conds,
@@ -695,7 +695,7 @@
 
                        // Subpages of this page (non-redirects)
                        $conds['page_is_redirect'] = 0;
-                       $result['subpages']['nonredirects'] = (int) 
$dbr->selectField(
+                       $result['subpages']['nonredirects'] = 
(int)$dbr->selectField(
                                'page',
                                'COUNT(page_id)',
                                $conds,
@@ -708,7 +708,7 @@
                }
 
                // Counts for the number of transclusion links (to/from)
-               $result['transclusion']['to'] = (int) $dbr->selectField(
+               $result['transclusion']['to'] = (int)$dbr->selectField(
                        'templatelinks',
                        'COUNT(tl_from)',
                        array(
@@ -718,7 +718,7 @@
                        __METHOD__
                );
 
-               $result['transclusion']['from'] = (int) $dbr->selectField(
+               $result['transclusion']['from'] = (int)$dbr->selectField(
                        'templatelinks',
                        'COUNT(*)',
                        array( 'tl_from' => $title->getArticleID() ),
diff --git a/includes/api/ApiOptions.php b/includes/api/ApiOptions.php
index 720025f..b5aec77 100644
--- a/includes/api/ApiOptions.php
+++ b/includes/api/ApiOptions.php
@@ -87,7 +87,7 @@
                                case 'registered-checkmatrix':
                                        // A key for a multiselect or 
checkmatrix option.
                                        $validation = true;
-                                       $value = $value !== null ? (bool) 
$value : null;
+                                       $value = $value !== null ? (bool)$value 
: null;
                                        break;
                                case 'userjs':
                                        // Allow non-default preferences 
prefixed with 'userjs-', to be set by user scripts
diff --git a/includes/api/ApiQuerySiteinfo.php 
b/includes/api/ApiQuerySiteinfo.php
index e14baa6..3c22a73 100644
--- a/includes/api/ApiQuerySiteinfo.php
+++ b/includes/api/ApiQuerySiteinfo.php
@@ -139,7 +139,7 @@
                        $allowException = !empty( $allowFrom );
                }
                if ( $allowException ) {
-                       $data['externalimages'] = (array) $allowFrom;
+                       $data['externalimages'] = (array)$allowFrom;
                        $this->getResult()->setIndexedTagName( 
$data['externalimages'], 'prefix' );
                }
 
diff --git a/includes/cache/GenderCache.php b/includes/cache/GenderCache.php
index b7d1b26..a933527 100644
--- a/includes/cache/GenderCache.php
+++ b/includes/cache/GenderCache.php
@@ -143,7 +143,7 @@
                $default = $this->getDefault();
 
                $usersToCheck = array();
-               foreach ( (array) $users as $value ) {
+               foreach ( (array)$users as $value ) {
                        $name = self::normalizeUsername( $value );
                        // Skip users whose gender setting we already know
                        if ( !isset( $this->cache[$name] ) ) {
diff --git a/includes/debug/Debug.php b/includes/debug/Debug.php
index 9f692c8..6e9ccc4 100644
--- a/includes/debug/Debug.php
+++ b/includes/debug/Debug.php
@@ -332,7 +332,7 @@
                self::$query[] = array(
                        'sql' => $sql,
                        'function' => $function,
-                       'master' => (bool) $isMaster,
+                       'master' => (bool)$isMaster,
                        'time' => 0.0,
                        '_start' => microtime( true ),
                );
diff --git a/includes/externalstore/ExternalStore.php 
b/includes/externalstore/ExternalStore.php
index aa89add..462b0b9 100644
--- a/includes/externalstore/ExternalStore.php
+++ b/includes/externalstore/ExternalStore.php
@@ -167,7 +167,7 @@
        public static function insertToDefault( $data, array $params = array() 
) {
                global $wgDefaultExternalStore;
 
-               return self::insertWithFallback( (array) 
$wgDefaultExternalStore, $data, $params );
+               return self::insertWithFallback( 
(array)$wgDefaultExternalStore, $data, $params );
        }
 
        /**
diff --git a/includes/logging/DeleteLogFormatter.php 
b/includes/logging/DeleteLogFormatter.php
index 44334ba..01528b7 100644
--- a/includes/logging/DeleteLogFormatter.php
+++ b/includes/logging/DeleteLogFormatter.php
@@ -87,9 +87,9 @@
                // Input is like ofield=2134 or just the number
                if ( strpos( $string, 'field=' ) === 1 ) {
                        list( , $field ) = explode( '=', $string );
-                       return (int) $field;
+                       return (int)$field;
                } else {
-                       return (int) $string;
+                       return (int)$string;
                }
        }
 
diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php
index 226a1ed..b2a8e50 100644
--- a/includes/logging/LogEntry.php
+++ b/includes/logging/LogEntry.php
@@ -165,7 +165,7 @@
         */
        public static function newFromRow( $row ) {
                if ( is_array( $row ) && isset( $row['rc_logid'] ) ) {
-                       return new RCDatabaseLogEntry( (object) $row );
+                       return new RCDatabaseLogEntry( (object)$row );
                } else {
                        return new self( $row );
                }
@@ -234,7 +234,7 @@
 
        public function getPerformer() {
                if ( !$this->performer ) {
-                       $userId = (int) $this->row->log_user;
+                       $userId = (int)$this->row->log_user;
                        if ( $userId !== 0 ) { // logged-in users
                                if ( isset( $this->row->user_name ) ) {
                                        $this->performer = User::newFromRow( 
$this->row );
@@ -292,7 +292,7 @@
 
        public function getPerformer() {
                if ( !$this->performer ) {
-                       $userId = (int) $this->row->rc_user;
+                       $userId = (int)$this->row->rc_user;
                        if ( $userId !== 0 ) {
                                $this->performer = User::newFromId( $userId );
                        } else {
@@ -472,7 +472,7 @@
                        'log_title' => $this->getTarget()->getDBkey(),
                        'log_page' => $this->getTarget()->getArticleID(),
                        'log_comment' => $comment,
-                       'log_params' => serialize( (array) 
$this->getParameters() ),
+                       'log_params' => serialize( 
(array)$this->getParameters() ),
                );
                $dbw->insert( 'logging', $data, __METHOD__ );
                $this->id = !is_null( $id ) ? $id : $dbw->insertId();
@@ -534,7 +534,7 @@
                        $this->getSubtype(),
                        $this->getTarget(),
                        $this->getComment(),
-                       serialize( (array) $this->getParameters() ),
+                       serialize( (array)$this->getParameters() ),
                        $newId,
                        $formatter->getIRCActionComment() // Used for IRC feeds
                );
@@ -586,7 +586,7 @@
        }
 
        public function getDeleted() {
-               return (int) $this->deleted;
+               return (int)$this->deleted;
        }
 
 }
diff --git a/includes/media/XMPValidate.php b/includes/media/XMPValidate.php
index 3e29c12..87f8abf 100644
--- a/includes/media/XMPValidate.php
+++ b/includes/media/XMPValidate.php
@@ -101,7 +101,7 @@
                        $val = null;
                        return;
                } else {
-                       $nVal = (float) $val;
+                       $nVal = (float)$val;
                        if ( $nVal < 0 ) {
                                // We do < 0 here instead of < -1 here, since
                                // the values between 0 and -1 are also illegal
diff --git a/includes/objectcache/SqlBagOStuff.php 
b/includes/objectcache/SqlBagOStuff.php
index b6bf3f8..acf2703 100644
--- a/includes/objectcache/SqlBagOStuff.php
+++ b/includes/objectcache/SqlBagOStuff.php
@@ -364,7 +364,7 @@
                        return false;
                }
 
-               return (bool) $db->affectedRows();
+               return (bool)$db->affectedRows();
        }
 
        /**
diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php
index 5cb70cb..9519de9 100644
--- a/includes/parser/ParserOutput.php
+++ b/includes/parser/ParserOutput.php
@@ -284,7 +284,7 @@
        }
 
        public function addModules( $modules ) {
-               $this->mModules = array_merge( $this->mModules, (array) 
$modules );
+               $this->mModules = array_merge( $this->mModules, (array)$modules 
);
        }
 
        public function addModuleScripts( $modules ) {
diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php
index 41a9d60..2282a3a 100644
--- a/includes/profiler/Profiler.php
+++ b/includes/profiler/Profiler.php
@@ -594,8 +594,8 @@
                        $prof .= sprintf( $format,
                                substr( $fname, 0, $nameWidth ),
                                $calls,
-                               (float) ( $elapsed * 1000 ),
-                               (float) ( $elapsed * 1000 ) / $calls,
+                               (float)( $elapsed * 1000 ),
+                               (float)( $elapsed * 1000 ) / $calls,
                                $percent,
                                $memory,
                                ( $this->mMin[$fname] * 1000.0 ),
@@ -665,7 +665,7 @@
 
                        foreach ( $this->mCollated as $name => $elapsed ) {
                                $eventCount = $this->mCalls[$name];
-                               $timeSum = (float) ( $elapsed * 1000 );
+                               $timeSum = (float)( $elapsed * 1000 );
                                $memorySum = (float)$this->mMemory[$name];
                                $name = substr( $name, 0, 255 );
 
diff --git a/includes/specials/SpecialRandomInCategory.php 
b/includes/specials/SpecialRandomInCategory.php
index b8c7b0f..0e022bf 100644
--- a/includes/specials/SpecialRandomInCategory.php
+++ b/includes/specials/SpecialRandomInCategory.php
@@ -132,7 +132,7 @@
         */
        public function getRandomTitle() {
                // Convert to float, since we do math with the random number.
-               $rand = (float) wfRandom();
+               $rand = (float)wfRandom();
                $title = null;
 
                // Given that timestamps are rather unevenly distributed, we 
also
diff --git a/includes/specials/SpecialUserlogin.php 
b/includes/specials/SpecialUserlogin.php
index db8ddcd..48bef9d 100644
--- a/includes/specials/SpecialUserlogin.php
+++ b/includes/specials/SpecialUserlogin.php
@@ -1154,7 +1154,7 @@
                $template->set( 'usereason', $user->isLoggedIn() );
                $template->set( 'remember', $user->getOption( 
'rememberpassword' ) || $this->mRemember );
                $template->set( 'cansecurelogin', ( $wgSecureLogin === true ) );
-               $template->set( 'stickhttps', (int) $this->mStickHTTPS );
+               $template->set( 'stickhttps', (int)$this->mStickHTTPS );
 
                if ( $this->mType === 'signup' && $user->isLoggedIn() ) {
                        $template->set( 'createAnother', true );
diff --git a/includes/specials/SpecialWatchlist.php 
b/includes/specials/SpecialWatchlist.php
index 9ef02fa..59f0dfe 100644
--- a/includes/specials/SpecialWatchlist.php
+++ b/includes/specials/SpecialWatchlist.php
@@ -452,7 +452,7 @@
 
        protected function showHideLink( $options, $message, $name, $value ) {
                $label = $this->msg( $value ? 'show' : 'hide' )->escaped();
-               $options[$name] = 1 - (int) $value;
+               $options[$name] = 1 - (int)$value;
 
                return $this->msg( $message )->rawParams( Linker::linkKnown( 
$this->getTitle(), $label, array(), $options ) )->escaped();
        }
diff --git a/languages/Language.php b/languages/Language.php
index 00c3faf..691efe6 100644
--- a/languages/Language.php
+++ b/languages/Language.php
@@ -3624,7 +3624,7 @@
                foreach ( $forms as $index => $form ) {
                        if ( preg_match( '/^\d+=/i', $form ) ) {
                                $pos = strpos( $form, '=' );
-                               if ( substr( $form, 0, $pos ) === (string) 
$count ) {
+                               if ( substr( $form, 0, $pos ) === 
(string)$count ) {
                                        return substr( $form, $pos + 1 );
                                }
                                unset( $forms[$index] );
diff --git a/languages/classes/LanguageSr.php b/languages/classes/LanguageSr.php
index e8811ac..6f0ff4b 100644
--- a/languages/classes/LanguageSr.php
+++ b/languages/classes/LanguageSr.php
@@ -202,9 +202,9 @@
                $numLatin = preg_match_all( "/[šđč枊ĐČĆŽ]/u", $text, $dummy );
 
                if ( $variant == 'sr-ec' ) {
-                       return (boolean) ( $numCyrillic > $numLatin );
+                       return $numCyrillic > $numLatin;
                } elseif ( $variant == 'sr-el' ) {
-                       return (boolean) ( $numLatin > $numCyrillic );
+                       return $numLatin > $numCyrillic;
                } else {
                        return false;
                }
diff --git a/languages/utils/CLDRPluralRuleEvaluator.php 
b/languages/utils/CLDRPluralRuleEvaluator.php
index 43e8aaf..d3a863b 100644
--- a/languages/utils/CLDRPluralRuleEvaluator.php
+++ b/languages/utils/CLDRPluralRuleEvaluator.php
@@ -127,7 +127,7 @@
                                return !$right->isNumberWithin( $left );
                        case 'mod':
                                if ( is_int( $left ) ) {
-                                       return (int) fmod( $left, $right );
+                                       return (int)fmod( $left, $right );
                                }
                                return fmod( $left, $right );
                        case ',':

-- 
To view, visit https://gerrit.wikimedia.org/r/82097
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I607655b5f4366e66dc78730d5fd2f57ed8776cae
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Matmarex <matma....@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to