@@ -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 |
@@ -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 |
@@ -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 |