Passed
Branch main (4188bc)
by Dimitri
15:54 queued 03:16
created
src/Rules/ProhibitedIf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         $requiredValidator = $validator('required');
64 64
 
65 65
         if (in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) {
66
-            return ! $requiredValidator->check($value);
66
+            return !$requiredValidator->check($value);
67 67
         }
68 68
 
69 69
         return true;
Please login to merge, or discard this patch.
src/Rules/Min.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
         $min       = $this->getBytesSize($this->parameter('min'));
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/Between.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $max       = $this->getBytesSize($this->parameter('max'));
34 34
         $valueSize = $this->getValueSize($value);
35 35
 
36
-        if (! is_numeric($valueSize)) {
36
+        if (!is_numeric($valueSize)) {
37 37
             return false;
38 38
         }
39 39
 
Please login to merge, or discard this patch.
src/Rules/Gte.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/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 (null === $value || ! function_exists('enum_exists') || ! enum_exists($this->type) || ! method_exists($this->type, 'tryFrom')) {
58
+        if (null === $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/ActiveURL.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,13 +30,13 @@
 block discarded – undo
30 30
      */
31 31
     public function check($value): bool
32 32
     {
33
-        if (! is_string($value)) {
33
+        if (!is_string($value)) {
34 34
             return false;
35 35
         }
36 36
 
37 37
         if ($url = parse_url($value, PHP_URL_HOST)) {
38 38
             try {
39
-                $records = dns_get_record($url . '.', DNS_A | DNS_AAAA);
39
+                $records = dns_get_record($url . '.', DNS_A|DNS_AAAA);
40 40
 
41 41
                 if (is_array($records) && count($records) > 0) {
42 42
                     return true;
Please login to merge, or discard this patch.
src/Rules/Decimal.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_numeric($value)) {
26
+        if (!is_numeric($value)) {
27 27
             return false;
28 28
         }
29 29
 
Please login to merge, or discard this patch.
src/Rules/AbstractRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
     protected function getAttributeAlias(string $key): string
83 83
     {
84
-        if (! empty($this->_alias[$key])) {
84
+        if (!empty($this->_alias[$key])) {
85 85
             return $this->_alias[$key];
86 86
         }
87 87
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     protected function parseNamedParameters(array $parameters): array
139 139
     {
140
-        return array_reduce($parameters, function ($result, $item) {
140
+        return array_reduce($parameters, function($result, $item) {
141 141
             [$key, $value] = array_pad(explode('=', $item, 2), 2, null);
142 142
 
143 143
             $result[$key] = $value;
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.