Failed Conditions
Pull Request — master (#1)
by
unknown
02:42
created
src/Filter/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public static function filter($value) : string
24 24
     {
25 25
         if (!is_string($value)) {
26
-            throw new FilterException("Value '" . var_export($value, true) . "' is not a string");
26
+            throw new FilterException("Value '".var_export($value, true)."' is not a string");
27 27
         }
28 28
 
29 29
         $filteredEmail = filter_var($value, FILTER_VALIDATE_EMAIL);
Please login to merge, or discard this patch.
src/Filter/Url.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         }
32 32
 
33 33
         if (!is_string($value)) {
34
-            throw new FilterException("Value '" . var_export($value, true) . "' is not a string");
34
+            throw new FilterException("Value '".var_export($value, true)."' is not a string");
35 35
         }
36 36
 
37 37
         $filteredUrl = filter_var($value, FILTER_VALIDATE_URL);
Please login to merge, or discard this patch.
src/Filter/Strings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
         }
46 46
 
47 47
         if (is_object($value) && method_exists($value, '__toString')) {
48
-            $value = (string)$value;
48
+            $value = (string) $value;
49 49
         }
50 50
 
51 51
         if (!is_string($value)) {
52
-            throw new FilterException("Value '" . var_export($value, true) . "' is not a string");
52
+            throw new FilterException("Value '".var_export($value, true)."' is not a string");
53 53
         }
54 54
 
55 55
         $valueLength = strlen($value);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         if (empty($delimiter)) {
86 86
             throw new \InvalidArgumentException(
87
-                "Delimiter '" . var_export($delimiter, true) . "' is not a non-empty string"
87
+                "Delimiter '".var_export($delimiter, true)."' is not a non-empty string"
88 88
             );
89 89
         }
90 90
 
Please login to merge, or discard this patch.