Completed
Pull Request — master (#1)
by
unknown
04:03
created
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.
src/Filter/Strings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         if (empty($delimiter)) {
64 64
             throw new \InvalidArgumentException(
65
-                "Delimiter '" . var_export($delimiter, true) . "' is not a non-empty string"
65
+                "Delimiter '".var_export($delimiter, true)."' is not a non-empty string"
66 66
             );
67 67
         }
68 68
 
@@ -111,21 +111,21 @@  discard block
 block discarded – undo
111 111
     private static function checkIfScalarAndConvert(&$value)
112 112
     {
113 113
         if (is_scalar($value)) {
114
-            $value = (string)$value;
114
+            $value = (string) $value;
115 115
         }
116 116
     }
117 117
 
118 118
     private static function checkIfObjectAndConvert(&$value)
119 119
     {
120 120
         if (is_object($value) && method_exists($value, '__toString')) {
121
-            $value = (string)$value;
121
+            $value = (string) $value;
122 122
         }
123 123
     }
124 124
 
125 125
     private static function validateIfObjectIsAString($value)
126 126
     {
127 127
         if (!is_string($value)) {
128
-            throw new FilterException("Value '" . var_export($value, true) . "' is not a string");
128
+            throw new FilterException("Value '".var_export($value, true)."' is not a string");
129 129
         }
130 130
     }
131 131
 }
Please login to merge, or discard this patch.
src/Filter/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     private static function validateString($value)
40 40
     {
41 41
         if (!is_string($value)) {
42
-            throw new FilterException("Value '" . var_export($value, true) . "' is not a string");
42
+            throw new FilterException("Value '".var_export($value, true)."' is not a string");
43 43
         }
44 44
     }
45 45
 }
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
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     private static function validateString($value)
58 58
     {
59 59
         if (!is_string($value)) {
60
-            throw new FilterException("Value '" . var_export($value, true) . "' is not a string");
60
+            throw new FilterException("Value '".var_export($value, true)."' is not a string");
61 61
         }
62 62
     }
63 63
 }
Please login to merge, or discard this patch.