Completed
Push — master ( 73b59f...426511 )
by Chad
11s
created
src/Floats.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         }
41 41
 
42 42
         if (is_int($value) && $castInts) {
43
-            return self::ensureValueNotInfiniteAndInRange($value, (float)$value, $minValue ?? -INF, $maxValue ?? INF);
43
+            return self::ensureValueNotInfiniteAndInRange($value, (float) $value, $minValue ?? -INF, $maxValue ?? INF);
44 44
         }
45 45
 
46 46
         if (is_string($value)) {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             return self::ensureValueNotInfiniteAndInRange($value, $floatValue, $minValue ?? -INF, $maxValue ?? INF);
49 49
         }
50 50
 
51
-        throw new FilterException('"' . var_export($value, true) . '" $value is not a string');
51
+        throw new FilterException('"'.var_export($value, true).'" $value is not a string');
52 52
     }
53 53
 
54 54
     private static function fromString(string $value) : float
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             throw new FilterException("{$value} is hex format");
64 64
         }
65 65
 
66
-        return (float)$value;
66
+        return (float) $value;
67 67
     }
68 68
 
69 69
     private static function ensureValueNotInfiniteAndInRange(
Please login to merge, or discard this patch.