@@ -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); |
@@ -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,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 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $definedValues = $this->parameter('values'); |
38 | 38 | $anotherValue = $this->getAttribute()->getValue($anotherAttribute); |
39 | 39 | |
40 | - if (! in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) { |
|
40 | + if (!in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) { |
|
41 | 41 | return parent::check($value); |
42 | 42 | } |
43 | 43 |
@@ -18,6 +18,6 @@ |
||
18 | 18 | */ |
19 | 19 | public function check($value): bool |
20 | 20 | { |
21 | - return ! parent::check($value); |
|
21 | + return !parent::check($value); |
|
22 | 22 | } |
23 | 23 | } |
@@ -44,6 +44,6 @@ |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | // and it should be between 0 and 32 inclusive |
47 | - return ! ($parts[1] < 0 || $parts[1] > 32); |
|
47 | + return !($parts[1] < 0 || $parts[1] > 32); |
|
48 | 48 | } |
49 | 49 | } |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | // Non-numeric values cannot be a number...duh |
179 | - if (! is_numeric($value)) { |
|
179 | + if (!is_numeric($value)) { |
|
180 | 180 | return false; |
181 | 181 | } |
182 | 182 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | // Make sure it's a valid length for this card |
205 | 205 | $lengths = explode(',', $info['length']); |
206 | 206 | |
207 | - if (! in_array((string) strlen($value), $lengths, true)) { |
|
207 | + if (!in_array((string) strlen($value), $lengths, true)) { |
|
208 | 208 | return false; |
209 | 209 | } |
210 | 210 |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | */ |
166 | 166 | public function check($value): bool |
167 | 167 | { |
168 | - if (! is_string($value)) { |
|
168 | + if (!is_string($value)) { |
|
169 | 169 | return false; |
170 | 170 | } |
171 | 171 | |
@@ -181,16 +181,16 @@ discard block |
||
181 | 181 | $this->validation->getMessages(), |
182 | 182 | ); |
183 | 183 | |
184 | - if ($this->mixedCase && ! preg_match('/(\p{Ll}+.*\p{Lu})|(\p{Lu}+.*\p{Ll})/u', $value)) { |
|
184 | + if ($this->mixedCase && !preg_match('/(\p{Ll}+.*\p{Lu})|(\p{Lu}+.*\p{Ll})/u', $value)) { |
|
185 | 185 | $this->validation->errors()->add($attribute, static::name() . '.mixed', $this->processTranslate('password.mixed')); |
186 | 186 | } |
187 | - if ($this->letters && ! preg_match('/\pL/u', $value)) { |
|
187 | + if ($this->letters && !preg_match('/\pL/u', $value)) { |
|
188 | 188 | $this->validation->errors()->add($attribute, static::name() . '.letters', $this->processTranslate('password.letters')); |
189 | 189 | } |
190 | - if ($this->symbols && ! preg_match('/\p{Z}|\p{S}|\p{P}/u', $value)) { |
|
190 | + if ($this->symbols && !preg_match('/\p{Z}|\p{S}|\p{P}/u', $value)) { |
|
191 | 191 | $this->validation->errors()->add($attribute, static::name() . '.symbols', $this->processTranslate('password.symbols')); |
192 | 192 | } |
193 | - if ($this->numbers && ! preg_match('/\pN/u', $value)) { |
|
193 | + if ($this->numbers && !preg_match('/\pN/u', $value)) { |
|
194 | 194 | $this->validation->errors()->add($attribute, static::name() . '.numbers', $this->processTranslate('password.numbers')); |
195 | 195 | } |
196 | 196 |