@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * @param bool $immediate |
140 | 140 | * @return $this |
141 | 141 | */ |
142 | - public function with(string|array $value, bool $immediate = false): self |
|
142 | + public function with(string | array $value, bool $immediate = false): self |
|
143 | 143 | { |
144 | 144 | if (!is_array($value)) { |
145 | 145 | $value = [$value]; |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | * @param string|Expression|Closure|string[]|Expression[]|Closure[] $columns |
169 | 169 | * @return $this |
170 | 170 | */ |
171 | - public function groupBy(string|Expression|Closure|array $columns): self |
|
171 | + public function groupBy(string | Expression | Closure | array $columns): self |
|
172 | 172 | { |
173 | 173 | if (!is_array($columns)) { |
174 | 174 | $columns = [$columns]; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * @param Closure|null $value |
186 | 186 | * @return $this |
187 | 187 | */ |
188 | - public function having(string|Expression|Closure $column, ?Closure $value = null): self |
|
188 | + public function having(string | Expression | Closure $column, ?Closure $value = null): self |
|
189 | 189 | { |
190 | 190 | $this->getHavingStatement()->having($column, $value); |
191 | 191 | |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * @param Closure|null $value |
199 | 199 | * @return $this |
200 | 200 | */ |
201 | - public function orHaving(string|Expression|Closure $column, ?Closure $value = null): self |
|
201 | + public function orHaving(string | Expression | Closure $column, ?Closure $value = null): self |
|
202 | 202 | { |
203 | 203 | $this->getHavingStatement()->orHaving($column, $value); |
204 | 204 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * @return $this |
213 | 213 | */ |
214 | 214 | public function orderBy( |
215 | - string|Closure|Expression|array $columns, |
|
215 | + string | Closure | Expression | array $columns, |
|
216 | 216 | string $order = 'ASC' |
217 | 217 | ): self { |
218 | 218 | if (!is_array($columns)) { |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | * @param string|string[]|Expression|Expression[]|Closure|Closure[] $columns |
263 | 263 | * @return void |
264 | 264 | */ |
265 | - protected function select(string|Expression|Closure|array $columns = []): void |
|
265 | + protected function select(string | Expression | Closure | array $columns = []): void |
|
266 | 266 | { |
267 | 267 | $exp = new ColumnExpression($this->getQueryStatement()); |
268 | 268 | if ($columns instanceof Closure) { |
@@ -57,8 +57,7 @@ discard block |
||
57 | 57 | * @class Query |
58 | 58 | * @package Platine\Orm\Query |
59 | 59 | */ |
60 | -class Query extends BaseStatement |
|
61 | -{ |
|
60 | +class Query extends BaseStatement { |
|
62 | 61 | /** |
63 | 62 | * |
64 | 63 | * @var HavingStatement |
@@ -94,8 +93,7 @@ discard block |
||
94 | 93 | * Create new instance |
95 | 94 | * @param QueryStatement|null $queryStatement |
96 | 95 | */ |
97 | - public function __construct(?QueryStatement $queryStatement = null) |
|
98 | - { |
|
96 | + public function __construct(?QueryStatement $queryStatement = null) { |
|
99 | 97 | parent::__construct($queryStatement); |
100 | 98 | $this->havingStatement = new HavingStatement($this->queryStatement); |
101 | 99 | } |