Passed
Push — main ( 926316...d9c688 )
by Dimitri
02:57
created
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/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/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/ArrayMustHaveKeys.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
     {
37 37
         $this->requireParameters(['keys']);
38 38
 
39
-        if (! is_array($value)) {
39
+        if (!is_array($value)) {
40 40
             return false;
41 41
         }
42 42
 
Please login to merge, or discard this patch.
src/Rules/Mimes.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
         $this->requireParameters(['allowed_values']);
38 38
         $this->setAllowedValues($this->parameters = $this->parameter('allowed_values'));
39 39
 
40
-        if (! $this->isValidFileInstance($value)) {
40
+        if (!$this->isValidFileInstance($value)) {
41 41
             $rule = new RulesMimes();
42 42
             $rule->setAttribute($this->getAttribute());
43 43
             $rule->setValidation($this->validation);
Please login to merge, or discard this patch.
src/Rules/Phone.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function check($value): bool
32 32
     {
33
-        if (! empty($code = $this->parameter('code'))) {
33
+        if (!empty($code = $this->parameter('code'))) {
34 34
             $passes = (new CountryPhoneCallback($value, $code))->callPhoneValidator();
35 35
 
36 36
             return Helpers::collect($passes)->some(fn ($passe) => $passe);
Please login to merge, or discard this patch.
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.