@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | /** @param GroupKeyword|array<GroupKeyword> $component */ |
56 | 56 | #[DataProvider('provideExpressions')] |
57 | - public function testBuild(GroupKeyword|array $component, string $expected): void |
|
57 | + public function testBuild(GroupKeyword | array $component, string $expected): void |
|
58 | 58 | { |
59 | 59 | if (is_array($component)) { |
60 | 60 | $this->assertSame($expected, GroupKeywords::buildAll($component)); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * @param Expression $expr the expression that we are sorting by |
30 | 30 | * @param string $type the sorting type |
31 | 31 | */ |
32 | - public function __construct(Expression|null $expr = null, string $type = 'ASC') |
|
32 | + public function __construct(Expression | null $expr = null, string $type = 'ASC') |
|
33 | 33 | { |
34 | 34 | $this->expr = $expr; |
35 | 35 | $this->type = $type; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | public $expr; |
33 | 33 | |
34 | 34 | /** @param string $expr the condition or the operator */ |
35 | - public function __construct(string|null $expr = null) |
|
35 | + public function __construct(string | null $expr = null) |
|
36 | 36 | { |
37 | 37 | $this->expr = trim((string) $expr); |
38 | 38 | } |
@@ -74,10 +74,10 @@ discard block |
||
74 | 74 | * @param ArrayObj $using columns joined |
75 | 75 | */ |
76 | 76 | public function __construct( |
77 | - string|null $type = null, |
|
78 | - Expression|null $expr = null, |
|
79 | - array|null $on = null, |
|
80 | - ArrayObj|null $using = null, |
|
77 | + string | null $type = null, |
|
78 | + Expression | null $expr = null, |
|
79 | + array | null $on = null, |
|
80 | + ArrayObj | null $using = null, |
|
81 | 81 | ) { |
82 | 82 | $this->type = $type; |
83 | 83 | $this->expr = $expr; |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | public function build(): string |
89 | 89 | { |
90 | 90 | return array_search($this->type, self::JOINS) . ' ' . $this->expr |
91 | - . (! empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '') |
|
92 | - . (! empty($this->using) ? ' USING ' . $this->using->build() : ''); |
|
91 | + . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '') |
|
92 | + . (!empty($this->using) ? ' USING ' . $this->using->build() : ''); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | public function __toString(): string |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * @param Expression $old old expression |
30 | 30 | * @param Expression $new new expression containing new name |
31 | 31 | */ |
32 | - public function __construct(Expression|null $old = null, Expression|null $new = null) |
|
32 | + public function __construct(Expression | null $old = null, Expression | null $new = null) |
|
33 | 33 | { |
34 | 34 | $this->old = $old; |
35 | 35 | $this->new = $new; |
@@ -121,7 +121,7 @@ |
||
121 | 121 | } |
122 | 122 | } |
123 | 123 | |
124 | - if (! empty($expr->type)) { |
|
124 | + if (!empty($expr->type)) { |
|
125 | 125 | $ret[] = $expr; |
126 | 126 | } |
127 | 127 |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | ) { |
89 | 89 | $expr->type = $token->keyword; |
90 | 90 | } elseif (($token->type === TokenType::Operator) && ($token->value === ',')) { |
91 | - if (! empty($expr->expr)) { |
|
91 | + if (!empty($expr->expr)) { |
|
92 | 92 | $ret[] = $expr; |
93 | 93 | } |
94 | 94 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | } |
102 | 102 | |
103 | 103 | // Last iteration was not processed. |
104 | - if (! empty($expr->expr)) { |
|
104 | + if (!empty($expr->expr)) { |
|
105 | 105 | $ret[] = $expr; |
106 | 106 | } |
107 | 107 |
@@ -156,7 +156,7 @@ |
||
156 | 156 | } |
157 | 157 | |
158 | 158 | // Last iteration was not saved. |
159 | - if (! empty($expr->old)) { |
|
159 | + if (!empty($expr->old)) { |
|
160 | 160 | $ret[] = $expr; |
161 | 161 | } |
162 | 162 |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | ) { |
89 | 89 | $expr->type = $token->keyword; |
90 | 90 | } elseif (($token->type === TokenType::Operator) && ($token->value === ',')) { |
91 | - if (! empty($expr->expr)) { |
|
91 | + if (!empty($expr->expr)) { |
|
92 | 92 | $ret[] = $expr; |
93 | 93 | } |
94 | 94 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | } |
102 | 102 | |
103 | 103 | // Last iteration was not processed. |
104 | - if (! empty($expr->expr)) { |
|
104 | + if (!empty($expr->expr)) { |
|
105 | 105 | $ret[] = $expr; |
106 | 106 | } |
107 | 107 |