@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | protected function isRelationProperty(Builder $query, string $property): bool |
42 | 42 | { |
43 | - if (! Str::contains($property, '.')) { |
|
43 | + if (!Str::contains($property, '.')) { |
|
44 | 44 | return false; |
45 | 45 | } |
46 | 46 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | return false; |
49 | 49 | } |
50 | 50 | |
51 | - return ! Str::startsWith($property, $query->getModel()->getTable() . '.'); |
|
51 | + return !Str::startsWith($property, $query->getModel()->getTable() . '.'); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | protected function withRelationConstraint(Builder $query, $value, string $property): Builder |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | protected function withPropertyConstraint(Builder $query, $value, $property): Builder |
13 | 13 | { |
14 | - if (! is_array($value) || count($value) !== 2) { |
|
14 | + if (!is_array($value) || count($value) !== 2) { |
|
15 | 15 | throw ParameterException::tooFewElementsForBetweenExpression(); |
16 | 16 | } |
17 | 17 |
@@ -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 |
@@ -95,7 +95,7 @@ |
||
95 | 95 | return filter_var($value, FILTER_VALIDATE_BOOLEAN); |
96 | 96 | case CastType::INTEGER: |
97 | 97 | return filter_var($value, FILTER_VALIDATE_INT); |
98 | - case CastType::ARRAY: |
|
98 | + case CastType::array: |
|
99 | 99 | return explode(',', $value); |
100 | 100 | default: |
101 | 101 | if (in_array(strtolower($value), ['true', 'false'], true)) { |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | public const BOOLEAN = 'boolean'; |
12 | 12 | |
13 | - public const ARRAY = 'array'; |
|
13 | + public const array = 'array'; |
|
14 | 14 | |
15 | 15 | public const INTEGER = 'integer'; |
16 | 16 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * @deprecated use CastType::ARRAY instead |
29 | 29 | */ |
30 | - public const CAST_ARRAY = self::ARRAY; |
|
30 | + public const CAST_ARRAY = self::array; |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * @deprecated use CastType::INTEGER instead |