Failed Conditions
Pull Request — master (#1)
by
unknown
02:02
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/Strings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $value = self::castObjectToValueIfApplicable($value);
47 47
 
48 48
         if (!is_string($value)) {
49
-            throw new FilterException("Value '" . var_export($value, true) . "' is not a string");
49
+            throw new FilterException("Value '".var_export($value, true)."' is not a string");
50 50
         }
51 51
 
52 52
         self::validateStringLength($value, $minLength, $maxLength);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     {
70 70
         if (empty($delimiter)) {
71 71
             throw new \InvalidArgumentException(
72
-                "Delimiter '" . var_export($delimiter, true) . "' is not a non-empty string"
72
+                "Delimiter '".var_export($delimiter, true)."' is not a non-empty string"
73 73
             );
74 74
         }
75 75
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     private static function castObjectToValueIfApplicable(string $value) : string
94 94
     {
95 95
         if (is_object($value) && method_exists($value, '__toString')) {
96
-            $value = (string)$value;
96
+            $value = (string) $value;
97 97
         }
98 98
         return $value;
99 99
     }
Please login to merge, or discard this patch.
tests/Filter/StringsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
 
169 169
             public function __construct()
170 170
             {
171
-                $this->data = [1,2,3,4,5];
171
+                $this->data = [1, 2, 3, 4, 5];
172 172
             }
173 173
 
174 174
             public function __toString()
Please login to merge, or discard this patch.