@@ -13,11 +13,11 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function boot(): void |
| 15 | 15 | { |
| 16 | - if (! $this->app->runningInConsole()) { |
|
| 16 | + if (!$this->app->runningInConsole()) { |
|
| 17 | 17 | return; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | - if (! $this->app instanceof Laravel) { |
|
| 20 | + if (!$this->app instanceof Laravel) { |
|
| 21 | 21 | return; |
| 22 | 22 | } |
| 23 | 23 | |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | return filter_var($value, FILTER_VALIDATE_INT); |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | - if ($cast === CastType::ARRAY) { |
|
| 108 | + if ($cast === CastType::array) { |
|
| 109 | 109 | return explode(',', $value); |
| 110 | 110 | } |
| 111 | 111 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * @var string |
| 21 | 21 | */ |
| 22 | - public const ARRAY = 'array'; |
|
| 22 | + public const array = 'array'; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @var string |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | protected function withPropertyConstraint(Builder $query, $value, $property): Builder |
| 17 | 17 | { |
| 18 | - if (! is_array($value) || count($value) !== 2) { |
|
| 18 | + if (!is_array($value) || count($value) !== 2) { |
|
| 19 | 19 | throw ParameterException::tooFewElementsForBetweenExpression(); |
| 20 | 20 | } |
| 21 | 21 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | protected function isRelationProperty(Builder $query, string $property): bool |
| 53 | 53 | { |
| 54 | - if (! Str::contains($property, '.')) { |
|
| 54 | + if (!Str::contains($property, '.')) { |
|
| 55 | 55 | return false; |
| 56 | 56 | } |
| 57 | 57 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | return false; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - return ! Str::startsWith($property, $query->getModel()->getTable() . '.'); |
|
| 62 | + return !Str::startsWith($property, $query->getModel()->getTable() . '.'); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |