@@ -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 |
@@ -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 @@ discard block |
||
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 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @var string |
47 | 47 | */ |
48 | - public const CAST_ARRAY = self::ARRAY; |
|
48 | + public const CAST_ARRAY = self::array; |
|
49 | 49 | |
50 | 50 | /** |
51 | 51 | * @deprecated use CastType::INTEGER instead |