@@ -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 |
@@ -126,7 +126,7 @@ |
||
126 | 126 | return filter_var($value, FILTER_VALIDATE_INT); |
127 | 127 | } |
128 | 128 | |
129 | - if ($cast === CastType::ARRAY) { |
|
129 | + if ($cast === CastType::array) { |
|
130 | 130 | return explode($this->delimiter, $value); |
131 | 131 | } |
132 | 132 |
@@ -14,11 +14,11 @@ |
||
14 | 14 | { |
15 | 15 | QueryConfiguration::setPerPage((int) config('query-builder.per_page.default')); |
16 | 16 | QueryConfiguration::setPageName((string) config('query-builder.per_page.key')); |
17 | - if (! $this->app->runningInConsole()) { |
|
17 | + if (!$this->app->runningInConsole()) { |
|
18 | 18 | return; |
19 | 19 | } |
20 | 20 | |
21 | - if (! $this->app instanceof Laravel) { |
|
21 | + if (!$this->app instanceof Laravel) { |
|
22 | 22 | return; |
23 | 23 | } |
24 | 24 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function enableTypedFilter(string $type, string $value, array $filters): self |
18 | 18 | { |
19 | - if (! $this->request->has($type)) { |
|
19 | + if (!$this->request->has($type)) { |
|
20 | 20 | return $this; |
21 | 21 | } |
22 | 22 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | return $filter->isForProperty($property); |
32 | 32 | }) |
33 | 33 | ->first(); |
34 | - if (! $filter instanceof Filter) { |
|
34 | + if (!$filter instanceof Filter) { |
|
35 | 35 | return $this; |
36 | 36 | } |
37 | 37 |
@@ -103,7 +103,7 @@ |
||
103 | 103 | { |
104 | 104 | $results = []; |
105 | 105 | foreach ($searchable as $singleSearchable) { |
106 | - if (! $singleSearchable instanceof Filter && Str::contains($singleSearchable, '.')) { |
|
106 | + if (!$singleSearchable instanceof Filter && Str::contains($singleSearchable, '.')) { |
|
107 | 107 | [$relation, $property] = $this->resolveNestedRelation($singleSearchable); |
108 | 108 | |
109 | 109 | $results[$relation][] = $property; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | protected function withPropertyConstraint($query, $value, $property): Builder |
18 | 18 | { |
19 | - if (! is_array($value) || count($value) !== 2) { |
|
19 | + if (!is_array($value) || count($value) !== 2) { |
|
20 | 20 | throw ParameterException::tooFewElementsForBetweenExpression(); |
21 | 21 | } |
22 | 22 |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function isRelationProperty($query, string $property): bool |
70 | 70 | { |
71 | - if (! Str::contains($property, '.')) { |
|
71 | + if (!Str::contains($property, '.')) { |
|
72 | 72 | return false; |
73 | 73 | } |
74 | 74 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | return false; |
77 | 77 | } |
78 | 78 | |
79 | - return ! Str::startsWith($property, $query->getModel()->getTable() . '.'); |
|
79 | + return !Str::startsWith($property, $query->getModel()->getTable() . '.'); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |