Passed
Push — main ( 926316...d9c688 )
by Dimitri
02:57
created
src/Rules/Between.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $max       = $this->getBytesSize($this->parameter('max'));
33 33
         $valueSize = $this->getValueSize($value);
34 34
 
35
-        if (! is_numeric($valueSize)) {
35
+        if (!is_numeric($valueSize)) {
36 36
             return false;
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/Rules/Lt.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
             $value = (string) $value;
30 30
         }
31 31
 
32
-        if (! is_string($value)) {
32
+        if (!is_string($value)) {
33 33
             return false;
34 34
         }
35 35
 
36
-        if (! is_numeric($compare = $this->parameter('value'))) {
36
+        if (!is_numeric($compare = $this->parameter('value'))) {
37 37
             $compare = $this->getAttribute()->getValue($compare);
38 38
         }
39 39
 
Please login to merge, or discard this patch.
src/Rules/Mimetypes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         $this->requireParameters(['allowed_values']);
37 37
         $this->setAllowedValues($this->parameters = $this->parameter('allowed_values'));
38 38
 
39
-        if (! $this->isValidFileInstance($value)) {
39
+        if (!$this->isValidFileInstance($value)) {
40 40
             return false;
41 41
         }
42 42
 
Please login to merge, or discard this patch.
src/Rules/After.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,15 +35,15 @@
 block discarded – undo
35 35
         $this->requireParameters($this->fillableParams);
36 36
         $time = $this->parameter('time');
37 37
 
38
-        if (! $this->isValidDate($value)) {
38
+        if (!$this->isValidDate($value)) {
39 39
             throw $this->throwException($value);
40 40
         }
41 41
 
42
-        if (! $this->isValidDate($time)) {
42
+        if (!$this->isValidDate($time)) {
43 43
             $time = $this->getAttribute()->getValue($time);
44 44
         }
45 45
 
46
-        if (! $this->isValidDate($time)) {
46
+        if (!$this->isValidDate($time)) {
47 47
             throw $this->throwException($time);
48 48
         }
49 49
 
Please login to merge, or discard this patch.
src/Rules/Gt.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
             $value = (string) $value;
30 30
         }
31 31
 
32
-        if (! is_string($value)) {
32
+        if (!is_string($value)) {
33 33
             return false;
34 34
         }
35 35
 
36
-        if (! is_numeric($compare = $this->parameter('value'))) {
36
+        if (!is_numeric($compare = $this->parameter('value'))) {
37 37
             $compare = $this->getAttribute()->getValue($compare);
38 38
         }
39 39
 
Please login to merge, or discard this patch.
src/Rules/BeforeOrEqual.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,15 +35,15 @@
 block discarded – undo
35 35
         $this->requireParameters($this->fillableParams);
36 36
         $time = $this->parameter('time');
37 37
 
38
-        if (! $this->isValidDate($value)) {
38
+        if (!$this->isValidDate($value)) {
39 39
             throw $this->throwException($value);
40 40
         }
41 41
 
42
-        if (! $this->isValidDate($time)) {
42
+        if (!$this->isValidDate($time)) {
43 43
             $time = $this->getAttribute()->getValue($time);
44 44
         }
45 45
 
46
-        if (! $this->isValidDate($time)) {
46
+        if (!$this->isValidDate($time)) {
47 47
             throw $this->throwException($time);
48 48
         }
49 49
 
Please login to merge, or discard this patch.
src/Rules/Enum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             return true;
56 56
         }
57 57
 
58
-        if (empty($value) || ! function_exists('enum_exists') || ! enum_exists($this->type) || ! method_exists($this->type, 'tryFrom')) {
58
+        if (empty($value) || !function_exists('enum_exists') || !enum_exists($this->type) || !method_exists($this->type, 'tryFrom')) {
59 59
             return false;
60 60
         }
61 61
 
Please login to merge, or discard this patch.
src/Rules/CreditCard.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         $value = str_replace([' ', '-'], '', $value);
179 179
         
180 180
         // Non-numeric values cannot be a number...duh
181
-        if (! is_numeric($value)) {
181
+        if (!is_numeric($value)) {
182 182
             return false;
183 183
         }
184 184
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
             return false;
210 210
         }
211 211
 
212
-        if (! $this->validCC($info, $value)) {
212
+        if (!$this->validCC($info, $value)) {
213 213
             array_shift($types);
214 214
             goto label;
215 215
         }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         // Make sure it's a valid length for this card
226 226
         $lengths = explode(',', $info['length']);
227 227
 
228
-        if (! in_array((string) strlen($value), $lengths, true)) {
228
+        if (!in_array((string) strlen($value), $lengths, true)) {
229 229
             return false;
230 230
         }
231 231
 
Please login to merge, or discard this patch.
src/Rules/ProhibitedIf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $requiredValidator = $this->getRuleValidator('required');
63 63
 
64 64
         if (in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) {
65
-            return ! $requiredValidator->check($value);
65
+            return !$requiredValidator->check($value);
66 66
         }
67 67
 
68 68
         return true;
Please login to merge, or discard this patch.