Test Failed
Push — main ( 4188bc...4df161 )
by Dimitri
12:56
created
src/Rules/AlphaNum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function check($value): bool
22 22
     {
23
-        if (! is_string($value) && ! is_numeric($value)) {
23
+        if (!is_string($value) && !is_numeric($value)) {
24 24
             return false;
25 25
         }
26 26
 
Please login to merge, or discard this patch.
src/Rules/MissingUnless.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $definedValues    = $this->parameter('values');
38 38
         $anotherValue     = $this->getAttribute()->getValue($anotherAttribute);
39 39
 
40
-        if (! in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) {
40
+        if (!in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) {
41 41
             return parent::check($value);
42 42
         }
43 43
 
Please login to merge, or discard this patch.
src/Rules/DoesntEndWith.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
      */
19 19
     public function check($value): bool
20 20
     {
21
-        return ! parent::check($value);
21
+        return !parent::check($value);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Rules/Cidr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
44 44
         }
45 45
 
46 46
         // and it should be between 0 and 32 inclusive
47
-        return ! ($parts[1] < 0 || $parts[1] > 32);
47
+        return !($parts[1] < 0 || $parts[1] > 32);
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
src/Rules/CreditCard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         }
177 177
 
178 178
         // Non-numeric values cannot be a number...duh
179
-        if (! is_numeric($value)) {
179
+        if (!is_numeric($value)) {
180 180
             return false;
181 181
         }
182 182
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         // Make sure it's a valid length for this card
205 205
         $lengths = explode(',', $info['length']);
206 206
 
207
-        if (! in_array((string) strlen($value), $lengths, true)) {
207
+        if (!in_array((string) strlen($value), $lengths, true)) {
208 208
             return false;
209 209
         }
210 210
 
Please login to merge, or discard this patch.
src/Rules/Password.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      */
166 166
     public function check($value): bool
167 167
     {
168
-        if (! is_string($value)) {
168
+        if (!is_string($value)) {
169 169
             return false;
170 170
         }
171 171
 
@@ -181,16 +181,16 @@  discard block
 block discarded – undo
181 181
             $this->validation->getMessages(),
182 182
         );
183 183
 
184
-        if ($this->mixedCase && ! preg_match('/(\p{Ll}+.*\p{Lu})|(\p{Lu}+.*\p{Ll})/u', $value)) {
184
+        if ($this->mixedCase && !preg_match('/(\p{Ll}+.*\p{Lu})|(\p{Lu}+.*\p{Ll})/u', $value)) {
185 185
             $this->validation->errors()->add($attribute, static::name() . '.mixed', $this->processTranslate('password.mixed'));
186 186
         }
187
-        if ($this->letters && ! preg_match('/\pL/u', $value)) {
187
+        if ($this->letters && !preg_match('/\pL/u', $value)) {
188 188
             $this->validation->errors()->add($attribute, static::name() . '.letters', $this->processTranslate('password.letters'));
189 189
         }
190
-        if ($this->symbols && ! preg_match('/\p{Z}|\p{S}|\p{P}/u', $value)) {
190
+        if ($this->symbols && !preg_match('/\p{Z}|\p{S}|\p{P}/u', $value)) {
191 191
             $this->validation->errors()->add($attribute, static::name() . '.symbols', $this->processTranslate('password.symbols'));
192 192
         }
193
-        if ($this->numbers && ! preg_match('/\pN/u', $value)) {
193
+        if ($this->numbers && !preg_match('/\pN/u', $value)) {
194 194
             $this->validation->errors()->add($attribute, static::name() . '.numbers', $this->processTranslate('password.numbers'));
195 195
         }
196 196
 
Please login to merge, or discard this patch.
src/Rules/Titlecase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
      */
24 24
     public function check($value): bool
25 25
     {
26
-        if (! is_string($value)) {
26
+        if (!is_string($value)) {
27 27
             return false;
28 28
         }
29 29
 
30 30
         foreach ($this->getWords($value) as $word) {
31
-            if (! $this->isValidWord($word)) {
31
+            if (!$this->isValidWord($word)) {
32 32
                 return false;
33 33
             }
34 34
         }
Please login to merge, or discard this patch.
src/Rules/Missing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
      */
19 19
     public function check($value): bool
20 20
     {
21
-        return ! $this->validation->hasValue($this->attribute->getKey());
21
+        return !$this->validation->hasValue($this->attribute->getKey());
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Rules/Gtin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
      */
43 43
     public function check($value): bool
44 44
     {
45
-        if (! is_numeric($value)) {
45
+        if (!is_numeric($value)) {
46 46
             return false;
47 47
         }
48 48
 
49
-        if (! $this->hasAllowedLength($value)) {
49
+        if (!$this->hasAllowedLength($value)) {
50 50
             return false;
51 51
         }
52 52
 
Please login to merge, or discard this patch.