@@ -23,12 +23,12 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function check($value): bool |
| 25 | 25 | { |
| 26 | - if (! is_string($value)) { |
|
| 26 | + if (!is_string($value)) { |
|
| 27 | 27 | return false; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | foreach ($this->getWords($value) as $word) { |
| 31 | - if (! $this->isValidWord($word)) { |
|
| 31 | + if (!$this->isValidWord($word)) { |
|
| 32 | 32 | return false; |
| 33 | 33 | } |
| 34 | 34 | } |
@@ -18,6 +18,6 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function check($value): bool |
| 20 | 20 | { |
| 21 | - return ! $this->validation->hasValue($this->attribute->getKey()); |
|
| 21 | + return !$this->validation->hasValue($this->attribute->getKey()); |
|
| 22 | 22 | } |
| 23 | 23 | } |
@@ -42,11 +42,11 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | public function check($value): bool |
| 44 | 44 | { |
| 45 | - if (! is_numeric($value)) { |
|
| 45 | + if (!is_numeric($value)) { |
|
| 46 | 46 | return false; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - if (! $this->hasAllowedLength($value)) { |
|
| 49 | + if (!$this->hasAllowedLength($value)) { |
|
| 50 | 50 | return false; |
| 51 | 51 | } |
| 52 | 52 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function check($value): bool |
| 45 | 45 | { |
| 46 | - if (! is_array($value)) { |
|
| 46 | + if (!is_array($value)) { |
|
| 47 | 47 | if (null === $attribute = $this->attribute->getPrimaryAttribute()) { |
| 48 | 48 | return false; |
| 49 | 49 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | if (in_array('ignore_case', $this->parameters, true)) { |
| 58 | - $value = array_map(function ($v) { |
|
| 58 | + $value = array_map(function($v) { |
|
| 59 | 59 | if (is_string($v)) { |
| 60 | 60 | $v = strtolower($v); |
| 61 | 61 | } |
@@ -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 | } |
@@ -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 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | public function check($value): bool |
| 22 | 22 | { |
| 23 | 23 | // https://www.php.net/manual/en/function.is-float.php#117304 |
| 24 | - if (! is_scalar($value)) { |
|
| 24 | + if (!is_scalar($value)) { |
|
| 25 | 25 | return false; |
| 26 | 26 | } |
| 27 | 27 | |
@@ -34,11 +34,11 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function check($value): bool |
| 36 | 36 | { |
| 37 | - if ((! is_string($value) && ! is_numeric($value) && ! ($value instanceof DateTimeInterface))) { |
|
| 37 | + if ((!is_string($value) && !is_numeric($value) && !($value instanceof DateTimeInterface))) { |
|
| 38 | 38 | return false; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - if (! empty($format = $this->parameter('format'))) { |
|
| 41 | + if (!empty($format = $this->parameter('format'))) { |
|
| 42 | 42 | $this->message .= ' format'; |
| 43 | 43 | |
| 44 | 44 | $date = DateTime::createFromFormat($format, $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 | |