@@ -55,7 +55,7 @@ |
||
55 | 55 | return true; |
56 | 56 | } |
57 | 57 | |
58 | - if (empty($value) || ! function_exists('enum_exists') || ! enum_exists($this->type) || ! method_exists($this->type, 'tryFrom')) { |
|
58 | + if (empty($value) || !function_exists('enum_exists') || !enum_exists($this->type) || !method_exists($this->type, 'tryFrom')) { |
|
59 | 59 | return false; |
60 | 60 | } |
61 | 61 |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $value = str_replace([' ', '-'], '', $value); |
179 | 179 | |
180 | 180 | // Non-numeric values cannot be a number...duh |
181 | - if (! is_numeric($value)) { |
|
181 | + if (!is_numeric($value)) { |
|
182 | 182 | return false; |
183 | 183 | } |
184 | 184 | |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | return false; |
210 | 210 | } |
211 | 211 | |
212 | - if (! $this->validCC($info, $value)) { |
|
212 | + if (!$this->validCC($info, $value)) { |
|
213 | 213 | array_shift($types); |
214 | 214 | goto label; |
215 | 215 | } |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | // Make sure it's a valid length for this card |
226 | 226 | $lengths = explode(',', $info['length']); |
227 | 227 | |
228 | - if (! in_array((string) strlen($value), $lengths, true)) { |
|
228 | + if (!in_array((string) strlen($value), $lengths, true)) { |
|
229 | 229 | return false; |
230 | 230 | } |
231 | 231 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $requiredValidator = $this->getRuleValidator('required'); |
63 | 63 | |
64 | 64 | if (in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) { |
65 | - return ! $requiredValidator->check($value); |
|
65 | + return !$requiredValidator->check($value); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | return true; |
@@ -61,8 +61,8 @@ |
||
61 | 61 | |
62 | 62 | $requiredValidator = $this->getRuleValidator('required'); |
63 | 63 | |
64 | - if (! in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) { |
|
65 | - return ! $requiredValidator->check($value); |
|
64 | + if (!in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) { |
|
65 | + return !$requiredValidator->check($value); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | return true; |
@@ -37,12 +37,12 @@ |
||
37 | 37 | { |
38 | 38 | $this->requireParameters(['fields']); |
39 | 39 | |
40 | - $fields = $this->parameter('fields'); |
|
40 | + $fields = $this->parameter('fields'); |
|
41 | 41 | |
42 | 42 | $this->setParameterTextValues($fields, 'values'); |
43 | 43 | |
44 | 44 | foreach ($fields as $field) { |
45 | - if (! $this->validation->hasValue($field)) { |
|
45 | + if (!$this->validation->hasValue($field)) { |
|
46 | 46 | return true; |
47 | 47 | } |
48 | 48 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $this->setParameterTextValues((array) $anotherAttribute, 'other_attribute'); |
46 | 46 | $this->setParameterTextValues((array) $definedValues, 'other_value'); |
47 | 47 | |
48 | - if (! in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $definedValues)) { |
|
48 | + if (!in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $definedValues)) { |
|
49 | 49 | $presentValidator = $this->getRuleValidator('present'); |
50 | 50 | |
51 | 51 | $presentValidator->setValidation($this->validation); |