Completed
Pull Request — master (#1)
by Chad
03:07
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.
docs/ajax_search.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@
 block discarded – undo
32 32
     $value     = $element->getElementsByTagName('value');
33 33
     $id        = $element->getElementsByTagName('id');
34 34
     $type      = $element->getElementsByTagName('type');
35
-    $results[] = '{ "value": "' . addslashes($value->item(0)->nodeValue)
36
-    . '", "id": "' . addslashes($id->item(0)->nodeValue)
37
-    . '", "type": "' . addslashes($type->item(0)->nodeValue) . '" }';
35
+    $results[] = '{ "value": "'.addslashes($value->item(0)->nodeValue)
36
+    . '", "id": "'.addslashes($id->item(0)->nodeValue)
37
+    . '", "type": "'.addslashes($type->item(0)->nodeValue).'" }';
38 38
 }
39 39
 
40
-echo '[' . implode(', ', $results) . ']';
40
+echo '['.implode(', ', $results).']';
Please login to merge, or discard this patch.