@@ -64,19 +64,19 @@ |
||
| 64 | 64 | |
| 65 | 65 | $phpIntMin = ~PHP_INT_MAX; |
| 66 | 66 | |
| 67 | - $casted = (int)$value; |
|
| 67 | + $casted = (int) $value; |
|
| 68 | 68 | |
| 69 | - if ($casted === PHP_INT_MAX && $value !== (string)PHP_INT_MAX) { |
|
| 70 | - throw new FilterException("{$value} was greater than a max int of " . PHP_INT_MAX); |
|
| 69 | + if ($casted === PHP_INT_MAX && $value !== (string) PHP_INT_MAX) { |
|
| 70 | + throw new FilterException("{$value} was greater than a max int of ".PHP_INT_MAX); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - if ($casted === $phpIntMin && $value !== (string)$phpIntMin) { |
|
| 73 | + if ($casted === $phpIntMin && $value !== (string) $phpIntMin) { |
|
| 74 | 74 | throw new FilterException("{$value} was less than a min int of {$phpIntMin}"); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | $valueInt = $casted; |
| 78 | 78 | } else { |
| 79 | - throw new FilterException('"' . var_export($value, true) . '" $value is not a string'); |
|
| 79 | + throw new FilterException('"'.var_export($value, true).'" $value is not a string'); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | if ($minValue !== null && $valueInt < $minValue) { |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | '999999999999' => '9223372036854775808', |
| 135 | 135 | '170141183460469231731687303715884105727' => '170141183460469231731687303715884105728', |
| 136 | 136 | ]; |
| 137 | - $oneOverMax = $maxes[(string)PHP_INT_MAX]; |
|
| 137 | + $oneOverMax = $maxes[(string) PHP_INT_MAX]; |
|
| 138 | 138 | Ints::filter($oneOverMax); |
| 139 | 139 | } |
| 140 | 140 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | '-9223372036854775808' => '-9223372036854775809', |
| 152 | 152 | '-170141183460469231731687303715884105728' => '-170141183460469231731687303715884105729', |
| 153 | 153 | ]; |
| 154 | - $oneUnderMin = $mins[(string)~PHP_INT_MAX]; |
|
| 154 | + $oneUnderMin = $mins[(string) ~PHP_INT_MAX]; |
|
| 155 | 155 | Ints::filter($oneUnderMin); |
| 156 | 156 | } |
| 157 | 157 | |