Remove spaces after type casts
This commit is contained in:
@ -10,13 +10,13 @@ class Helpers {
|
||||
switch(substr($maxPostSize, -1)) {
|
||||
case 'M':
|
||||
case 'm':
|
||||
return (int) $maxPostSize * 1048576;
|
||||
return (int)$maxPostSize * 1048576;
|
||||
case 'K':
|
||||
case 'k':
|
||||
return (int) $maxPostSize * 1024;
|
||||
return (int)$maxPostSize * 1024;
|
||||
case 'G':
|
||||
case 'g':
|
||||
return (int) $maxPostSize * 1073741824;
|
||||
return (int)$maxPostSize * 1073741824;
|
||||
default:
|
||||
return $maxPostSize;
|
||||
}
|
||||
@ -67,13 +67,13 @@ class Helpers {
|
||||
return false;
|
||||
}
|
||||
$paramsInput = $params[0];
|
||||
$paramsColumnKey = ($params[1] !== null) ? (string) $params[1] : null;
|
||||
$paramsColumnKey = ($params[1] !== null) ? (string)$params[1] : null;
|
||||
$paramsIndexKey = null;
|
||||
if(isset($params[2])) {
|
||||
if(is_float($params[2]) || is_int($params[2])) {
|
||||
$paramsIndexKey = (int) $params[2];
|
||||
$paramsIndexKey = (int)$params[2];
|
||||
} else {
|
||||
$paramsIndexKey = (string) $params[2];
|
||||
$paramsIndexKey = (string)$params[2];
|
||||
}
|
||||
}
|
||||
$resultArray = array();
|
||||
@ -82,7 +82,7 @@ class Helpers {
|
||||
$keySet = $valueSet = false;
|
||||
if($paramsIndexKey !== null && array_key_exists($paramsIndexKey, $row)) {
|
||||
$keySet = true;
|
||||
$key = (string) $row[$paramsIndexKey];
|
||||
$key = (string)$row[$paramsIndexKey];
|
||||
}
|
||||
if($paramsColumnKey === null) {
|
||||
$valueSet = true;
|
||||
@ -123,4 +123,4 @@ class Helpers {
|
||||
static function splitObject($object = array()) {
|
||||
return explode(self::DIVIDER, $object);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user