@@ -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 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | $this->requireParameters(['allowed_values']); |
| 37 | 37 | $this->setAllowedValues($this->parameters = $this->parameter('allowed_values')); |
| 38 | 38 | |
| 39 | - if (! $this->isValidFileInstance($value)) { |
|
| 39 | + if (!$this->isValidFileInstance($value)) { |
|
| 40 | 40 | return false; |
| 41 | 41 | } |
| 42 | 42 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | // normalize value |
| 42 | 42 | $value = preg_replace('/[^0-9x]/i', '', $value); |
| 43 | 43 | |
| 44 | - if (! $this->hasAllowedLength($value)) { |
|
| 44 | + if (!$this->hasAllowedLength($value)) { |
|
| 45 | 45 | return false; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -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 | |
@@ -62,8 +62,8 @@ |
||
| 62 | 62 | $validator = $this->validation->getValidator(); |
| 63 | 63 | $requiredValidator = $validator('required'); |
| 64 | 64 | |
| 65 | - if (! in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) { |
|
| 66 | - return ! $requiredValidator->check($value); |
|
| 65 | + if (!in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $anotherValue)) { |
|
| 66 | + return !$requiredValidator->check($value); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | return true; |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | $this->requireParameters(['allowed_values']); |
| 37 | 37 | $this->setAllowedValues($this->parameters = $this->parameter('allowed_values')); |
| 38 | 38 | |
| 39 | - if (! $this->isValidFileInstance($value)) { |
|
| 39 | + if (!$this->isValidFileInstance($value)) { |
|
| 40 | 40 | return false; |
| 41 | 41 | } |
| 42 | 42 | |
@@ -32,13 +32,13 @@ |
||
| 32 | 32 | |
| 33 | 33 | // each label must be valid |
| 34 | 34 | foreach ($labels as $label) { |
| 35 | - if (! $this->isValidLabel($label)) { |
|
| 35 | + if (!$this->isValidLabel($label)) { |
|
| 36 | 36 | return false; |
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | // tld must be valid |
| 41 | - return ! (! $this->isValidTld($tld)); |
|
| 41 | + return !(!$this->isValidTld($tld)); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
@@ -23,10 +23,10 @@ |
||
| 23 | 23 | $anotherValue = $this->validation->getValue($this->parameter('field')); |
| 24 | 24 | $this->setAllowedValues((array) $anotherValue, 'and'); |
| 25 | 25 | |
| 26 | - if (! is_array($anotherValue)) { |
|
| 26 | + if (!is_array($anotherValue)) { |
|
| 27 | 27 | return true; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - return ! in_array($value, $anotherValue, $this->strict); |
|
| 30 | + return !in_array($value, $anotherValue, $this->strict); |
|
| 31 | 31 | } |
| 32 | 32 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function check($value): bool |
| 25 | 25 | { |
| 26 | - if (! is_string($value) && ! is_numeric($value)) { |
|
| 26 | + if (!is_string($value) && !is_numeric($value)) { |
|
| 27 | 27 | return false; |
| 28 | 28 | } |
| 29 | 29 | |