From df8ec1e2161a62a7c260a425e28154f1795cca31 Mon Sep 17 00:00:00 2001 From: MatmaRex Date: Sat, 31 Aug 2013 18:36:02 +0200 Subject: [PATCH] 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 --- includes/AjaxDispatcher.php | 2 +- includes/GlobalFunctions.php | 8 ++++---- includes/Html.php | 2 +- includes/IP.php | 4 ++-- includes/Message.php | 4 ++-- includes/OutputPage.php | 4 ++-- includes/Pager.php | 2 +- includes/Sanitizer.php | 2 +- includes/Timestamp.php | 2 +- includes/UIDGenerator.php | 10 +++++----- includes/User.php | 4 ++-- includes/actions/InfoAction.php | 20 +++++++++---------- includes/api/ApiOptions.php | 2 +- includes/api/ApiQuerySiteinfo.php | 2 +- includes/cache/GenderCache.php | 2 +- includes/debug/Debug.php | 2 +- includes/externalstore/ExternalStore.php | 2 +- includes/logging/DeleteLogFormatter.php | 4 ++-- includes/logging/LogEntry.php | 12 +++++------ includes/media/XMPValidate.php | 2 +- includes/objectcache/SqlBagOStuff.php | 2 +- includes/parser/ParserOutput.php | 2 +- includes/profiler/Profiler.php | 6 +++--- includes/specials/SpecialRandomInCategory.php | 2 +- includes/specials/SpecialUserlogin.php | 2 +- includes/specials/SpecialWatchlist.php | 2 +- languages/Language.php | 2 +- languages/classes/LanguageSr.php | 4 ++-- languages/utils/CLDRPluralRuleEvaluator.php | 2 +- 29 files changed, 58 insertions(+), 58 deletions(-) diff --git a/includes/AjaxDispatcher.php b/includes/AjaxDispatcher.php index bddbeb3497..c9ca128302 100644 --- a/includes/AjaxDispatcher.php +++ b/includes/AjaxDispatcher.php @@ -111,7 +111,7 @@ class AjaxDispatcher { 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 0060d15fb8..3e7448d086 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3156,9 +3156,9 @@ function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1, $lowercase = t $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 @@ function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1, $lowercase = t $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 1d45e6a504..3fea3e12c2 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -846,7 +846,7 @@ class Html { # * 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 0943606e04..2051e693b2 100644 --- a/includes/IP.php +++ b/includes/IP.php @@ -494,8 +494,8 @@ class IP { $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 74b4021ba8..73e0af20c4 100644 --- a/includes/Message.php +++ b/includes/Message.php @@ -423,7 +423,7 @@ class Message { * @since 1.20 */ public function setInterfaceMessageFlag( $value ) { - $this->interface = (bool) $value; + $this->interface = (bool)$value; return $this; } @@ -434,7 +434,7 @@ class Message { * @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 83a7d3f77a..4185118d20 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1534,7 +1534,7 @@ class OutputPage extends ContextSource { $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 @@ $templates 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 3ada0e2a03..4a14c7e065 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -257,7 +257,7 @@ abstract class IndexPager extends ContextSource implements Pager { * @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 d09e8d9f6a..1d20f18cfd 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -1802,6 +1802,6 @@ class Sanitizer { $ # 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 94ff2f8d58..48d972ceba 100644 --- a/includes/Timestamp.php +++ b/includes/Timestamp.php @@ -252,7 +252,7 @@ class MWTimestamp { 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 20ec302813..963e51a4d3 100644 --- a/includes/UIDGenerator.php +++ b/includes/UIDGenerator.php @@ -239,9 +239,9 @@ class UIDGenerator { $data = explode( ' ', fgets( $handle ) ); // " " $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 @@ class UIDGenerator { $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 @@ class UIDGenerator { */ 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 74d1e1f070..560c5dcae7 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2763,7 +2763,7 @@ class User { $this->mEditCount = $count; wfProfileOut( __METHOD__ ); } - return (int) $this->mEditCount; + return (int)$this->mEditCount; } /** @@ -4399,7 +4399,7 @@ class User { // 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 = (int)$dbr->selectField( 'revision', 'COUNT(rev_user)', array( 'rev_user' => $this->getId() ), diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 704dee48cb..2c0a87534d 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -614,7 +614,7 @@ class InfoAction extends FormlessAction { if ( !$wgDisableCounters ) { // Number of views - $views = (int) $dbr->selectField( + $views = (int)$dbr->selectField( 'page', 'page_counter', array( 'page_id' => $id ), @@ -624,7 +624,7 @@ class InfoAction extends FormlessAction { } // Number of page watchers - $watchers = (int) $dbr->selectField( + $watchers = (int)$dbr->selectField( 'watchlist', 'COUNT(*)', array( @@ -636,7 +636,7 @@ class InfoAction extends FormlessAction { $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 @@ class InfoAction extends FormlessAction { $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 @@ class InfoAction extends FormlessAction { $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 @@ class InfoAction extends FormlessAction { $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 @@ class InfoAction extends FormlessAction { // 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 @@ class InfoAction extends FormlessAction { // 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 @@ class InfoAction extends FormlessAction { } // 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 @@ class InfoAction extends FormlessAction { __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 720025f8dc..b5aec7716a 100644 --- a/includes/api/ApiOptions.php +++ b/includes/api/ApiOptions.php @@ -87,7 +87,7 @@ class ApiOptions extends ApiBase { 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 e14baa61f4..3c22a73275 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -139,7 +139,7 @@ class ApiQuerySiteinfo extends ApiQueryBase { $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 b7d1b26116..a933527a88 100644 --- a/includes/cache/GenderCache.php +++ b/includes/cache/GenderCache.php @@ -143,7 +143,7 @@ class GenderCache { $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 9f692c8d0b..6e9ccc4129 100644 --- a/includes/debug/Debug.php +++ b/includes/debug/Debug.php @@ -332,7 +332,7 @@ class MWDebug { 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 aa89add220..462b0b900b 100644 --- a/includes/externalstore/ExternalStore.php +++ b/includes/externalstore/ExternalStore.php @@ -167,7 +167,7 @@ class ExternalStore { 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 44334baf5b..01528b7e17 100644 --- a/includes/logging/DeleteLogFormatter.php +++ b/includes/logging/DeleteLogFormatter.php @@ -87,9 +87,9 @@ class DeleteLogFormatter extends LogFormatter { // 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 226a1ed3eb..b2a8e50d30 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -165,7 +165,7 @@ class DatabaseLogEntry extends LogEntryBase { */ 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 @@ class DatabaseLogEntry extends LogEntryBase { 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 @@ class RCDatabaseLogEntry extends DatabaseLogEntry { 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 @@ class ManualLogEntry extends LogEntryBase { '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 @@ class ManualLogEntry extends LogEntryBase { $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 @@ class ManualLogEntry extends LogEntryBase { } public function getDeleted() { - return (int) $this->deleted; + return (int)$this->deleted; } } diff --git a/includes/media/XMPValidate.php b/includes/media/XMPValidate.php index 3e29c12b24..87f8abfe4c 100644 --- a/includes/media/XMPValidate.php +++ b/includes/media/XMPValidate.php @@ -101,7 +101,7 @@ class XMPValidate { $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 b6bf3f8b41..acf270364a 100644 --- a/includes/objectcache/SqlBagOStuff.php +++ b/includes/objectcache/SqlBagOStuff.php @@ -364,7 +364,7 @@ class SqlBagOStuff extends BagOStuff { return false; } - return (bool) $db->affectedRows(); + return (bool)$db->affectedRows(); } /** diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 5cb70cb011..9519de9aed 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -284,7 +284,7 @@ class ParserOutput extends CacheTime { } 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 41a9d60141..2282a3af40 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -594,8 +594,8 @@ class Profiler { $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 @@ class Profiler { 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 b8c7b0f901..0e022bfa2d 100644 --- a/includes/specials/SpecialRandomInCategory.php +++ b/includes/specials/SpecialRandomInCategory.php @@ -132,7 +132,7 @@ class SpecialRandomInCategory extends SpecialPage { */ 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 db8ddcd56b..48bef9d826 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -1154,7 +1154,7 @@ class LoginForm extends SpecialPage { $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 9ef02faefa..59f0dfedc0 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -452,7 +452,7 @@ class SpecialWatchlist extends SpecialPage { 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 00c3faf95d..691efe6abd 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -3624,7 +3624,7 @@ class Language { 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 e8811ac7a1..6f0ff4b533 100644 --- a/languages/classes/LanguageSr.php +++ b/languages/classes/LanguageSr.php @@ -202,9 +202,9 @@ class SrConverter extends LanguageConverter { $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 43e8aaf7d3..d3a863b48c 100644 --- a/languages/utils/CLDRPluralRuleEvaluator.php +++ b/languages/utils/CLDRPluralRuleEvaluator.php @@ -127,7 +127,7 @@ class CLDRPluralRuleEvaluator { 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 ',': -- 2.20.1