@@ -63,7 +63,7 @@ |
||
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; |
@@ -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 |
@@ -33,7 +33,7 @@ |
||
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 |
@@ -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 |
@@ -55,7 +55,7 @@ |
||
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 |
@@ -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; |
@@ -35,15 +35,15 @@ |
||
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 |