@@ -32,7 +32,7 @@ |
||
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 |
@@ -29,11 +29,11 @@ |
||
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 |
@@ -30,13 +30,13 @@ |
||
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; |
@@ -23,7 +23,7 @@ |
||
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 |
@@ -81,7 +81,7 @@ discard block |
||
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 |
||
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; |
@@ -36,7 +36,7 @@ |
||
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 |
@@ -37,7 +37,7 @@ |
||
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); |
@@ -30,7 +30,7 @@ |
||
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); |
@@ -20,7 +20,7 @@ |
||
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 |