@@ -322,7 +322,7 @@ |
||
322 | 322 | { |
323 | 323 | $defaultValue = parent::quoteDefault($driver); |
324 | 324 | if ($this->getAbstractType() === 'boolean') { |
325 | - $defaultValue = (string) ((int)$this->defaultValue); |
|
325 | + $defaultValue = (string)((int)$this->defaultValue); |
|
326 | 326 | } |
327 | 327 | |
328 | 328 | return $defaultValue; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | foreach ($schema as $indexColumn) { |
28 | 28 | $index->columns[] = $indexColumn['columnName']; |
29 | - if ((int) $indexColumn['isDescendingKey'] === 1) { |
|
29 | + if ((int)$indexColumn['isDescendingKey'] === 1) { |
|
30 | 30 | $index->sort[$indexColumn['columnName']] = 'DESC'; |
31 | 31 | } |
32 | 32 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | ); |
41 | 41 | } |
42 | 42 | |
43 | - protected function distinct(QueryParameters $params, Quoter $q, string|bool|array $distinct): string |
|
43 | + protected function distinct(QueryParameters $params, Quoter $q, string | bool | array $distinct): string |
|
44 | 44 | { |
45 | 45 | if ($distinct === false) { |
46 | 46 | return ''; |
@@ -162,7 +162,7 @@ |
||
162 | 162 | return $this->type('bigPrimary'); |
163 | 163 | } |
164 | 164 | |
165 | - public function enum(string|array $values): AbstractColumn |
|
165 | + public function enum(string | array $values): AbstractColumn |
|
166 | 166 | { |
167 | 167 | $this->enumValues = array_map('strval', \is_array($values) ? $values : \func_get_args()); |
168 | 168 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * Apply distinct ON to the query. |
21 | 21 | */ |
22 | - public function distinctOn(FragmentInterface|string $distinctOn): SelectQuery |
|
22 | + public function distinctOn(FragmentInterface | string $distinctOn): SelectQuery |
|
23 | 23 | { |
24 | 24 | $this->distinct = ['on' => $distinctOn]; |
25 | 25 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * Set returning column. If not set, the driver will detect PK automatically. |
46 | 46 | */ |
47 | - public function returning(string|FragmentInterface ...$columns): self |
|
47 | + public function returning(string | FragmentInterface ...$columns): self |
|
48 | 48 | { |
49 | 49 | $columns === [] and throw new BuilderException('RETURNING clause should contain at least 1 column.'); |
50 | 50 |