Passed
Branch main (4188bc)
by Dimitri
15:54 queued 03:16
created
src/Rules/Lte.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/Ext.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/Isbn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         // normalize value
42 42
         $value = preg_replace('/[^0-9x]/i', '', $value);
43 43
 
44
-        if (! $this->hasAllowedLength($value)) {
44
+        if (!$this->hasAllowedLength($value)) {
45 45
             return false;
46 46
         }
47 47
 
Please login to merge, or discard this patch.
src/Rules/AlphaDash.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/ProhibitedUnless.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@
 block discarded – undo
62 62
         $validator         = $this->validation->getValidator();
63 63
         $requiredValidator = $validator('required');
64 64
 
65
-        if (! in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) {
66
-            return ! $requiredValidator->check($value);
65
+        if (!in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) {
66
+            return !$requiredValidator->check($value);
67 67
         }
68 68
 
69 69
         return true;
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/Domain.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
 
33 33
         // each label must be valid
34 34
         foreach ($labels as $label) {
35
-            if (! $this->isValidLabel($label)) {
35
+            if (!$this->isValidLabel($label)) {
36 36
                 return false;
37 37
             }
38 38
         }
39 39
 
40 40
         // tld must be valid
41
-        return ! (! $this->isValidTld($tld));
41
+        return !(!$this->isValidTld($tld));
42 42
     }
43 43
 
44 44
     /**
Please login to merge, or discard this patch.
src/Rules/NotInArray.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
         $anotherValue = $this->validation->getValue($this->parameter('field'));
24 24
         $this->setAllowedValues((array) $anotherValue, 'and');
25 25
 
26
-        if (! is_array($anotherValue)) {
26
+        if (!is_array($anotherValue)) {
27 27
             return true;
28 28
         }
29 29
 
30
-        return ! in_array($value, $anotherValue, $this->strict);
30
+        return !in_array($value, $anotherValue, $this->strict);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Rules/NotRegex.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
      */
24 24
     public function check($value): bool
25 25
     {
26
-        if (! is_string($value) && ! is_numeric($value)) {
26
+        if (!is_string($value) && !is_numeric($value)) {
27 27
             return false;
28 28
         }
29 29
 
Please login to merge, or discard this patch.