Passed
Push — develop ( a43dd6...a7a008 )
by nguereza
11:16
created
src/Query/Query.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * @var string|array<string>
66 66
      */
67
-    protected string|array $tables;
67
+    protected string | array $tables;
68 68
 
69 69
     /**
70 70
      * Query constructor.
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function __construct(
76 76
         Connection $connection,
77
-        string|array $tables,
77
+        string | array $tables,
78 78
         ?QueryStatement $queryStatement = null
79 79
     ) {
80 80
         parent::__construct($queryStatement);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      *
89 89
      * @return Select|SelectStatement
90 90
      */
91
-    public function distinct(bool $value = true): Select|SelectStatement
91
+    public function distinct(bool $value = true): Select | SelectStatement
92 92
     {
93 93
         return $this->buildSelect()->distinct($value);
94 94
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @return Select|SelectStatement
100 100
      */
101
-    public function groupBy(string|array|Closure|Expression $columns): Select|SelectStatement
101
+    public function groupBy(string | array | Closure | Expression $columns): Select | SelectStatement
102 102
     {
103 103
         return $this->buildSelect()->groupBy($columns);
104 104
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      *
110 110
      * @return Select|SelectStatement
111 111
      */
112
-    public function having(string|Expression $column, ?Closure $value = null): Select|SelectStatement
112
+    public function having(string | Expression $column, ?Closure $value = null): Select | SelectStatement
113 113
     {
114 114
         return $this->buildSelect()->having($column, $value);
115 115
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      *
121 121
      * @return Select|SelectStatement
122 122
      */
123
-    public function orHaving(string|Expression $column, ?Closure $value = null): Select|SelectStatement
123
+    public function orHaving(string | Expression $column, ?Closure $value = null): Select | SelectStatement
124 124
     {
125 125
         return $this->buildSelect()->orHaving($column, $value);
126 126
     }
@@ -132,9 +132,9 @@  discard block
 block discarded – undo
132 132
      * @return Select|SelectStatement
133 133
      */
134 134
     public function orderBy(
135
-        string|array|Closure|Expression $columns,
135
+        string | array | Closure | Expression $columns,
136 136
         string $order = 'ASC'
137
-    ): Select|SelectStatement {
137
+    ): Select | SelectStatement {
138 138
         return $this->buildSelect()->orderBy($columns, $order);
139 139
     }
140 140
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      *
144 144
      * @return Select|SelectStatement
145 145
      */
146
-    public function limit(int $value): Select|SelectStatement
146
+    public function limit(int $value): Select | SelectStatement
147 147
     {
148 148
         return $this->buildSelect()->limit($value);
149 149
     }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      *
154 154
      * @return Select|SelectStatement
155 155
      */
156
-    public function offset(int $value): Select|SelectStatement
156
+    public function offset(int $value): Select | SelectStatement
157 157
     {
158 158
         return $this->buildSelect()->offset($value);
159 159
     }
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      * @param string $table
163 163
      * @return Select|SelectStatement
164 164
      */
165
-    public function into(string $table): Select|SelectStatement
165
+    public function into(string $table): Select | SelectStatement
166 166
     {
167 167
         return $this->buildSelect()->into($table);
168 168
     }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      *
173 173
      * @return ResultSet
174 174
      */
175
-    public function select(string|array|Expression|Closure $columns = []): ResultSet
175
+    public function select(string | array | Expression | Closure $columns = []): ResultSet
176 176
     {
177 177
         return $this->buildSelect()->select($columns);
178 178
     }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      * @param string|array<string> $tables
182 182
      * @return int
183 183
      */
184
-    public function delete(string|array $tables): int
184
+    public function delete(string | array $tables): int
185 185
     {
186 186
         return $this->buildDelete()->delete($tables);
187 187
     }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      *
192 192
      * @return mixed
193 193
      */
194
-    public function column(string|Closure|Expression $name): mixed
194
+    public function column(string | Closure | Expression $name): mixed
195 195
     {
196 196
         return $this->buildSelect()->column($name);
197 197
     }
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      *
203 203
      * @return int
204 204
      */
205
-    public function count(string|Expression|Closure $column = '*', bool $distinct = false): int
205
+    public function count(string | Expression | Closure $column = '*', bool $distinct = false): int
206 206
     {
207 207
         return $this->buildSelect()->count($column, $distinct);
208 208
     }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      *
214 214
      * @return int|float
215 215
      */
216
-    public function avg(string|Expression|Closure $column, bool $distinct = false): int|float
216
+    public function avg(string | Expression | Closure $column, bool $distinct = false): int | float
217 217
     {
218 218
         return $this->buildSelect()->avg($column, $distinct);
219 219
     }
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      *
225 225
      * @return int|float
226 226
      */
227
-    public function sum(string|Expression|Closure $column, bool $distinct = false): int|float
227
+    public function sum(string | Expression | Closure $column, bool $distinct = false): int | float
228 228
     {
229 229
         return $this->buildSelect()->sum($column, $distinct);
230 230
     }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      *
236 236
      * @return mixed
237 237
      */
238
-    public function min(string|Expression|Closure $column, bool $distinct = false): mixed
238
+    public function min(string | Expression | Closure $column, bool $distinct = false): mixed
239 239
     {
240 240
         return $this->buildSelect()->min($column, $distinct);
241 241
     }
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      *
247 247
      * @return mixed
248 248
      */
249
-    public function max(string|Expression|Closure $column, bool $distinct = false)
249
+    public function max(string | Expression | Closure $column, bool $distinct = false)
250 250
     {
251 251
         return $this->buildSelect()->max($column, $distinct);
252 252
     }
Please login to merge, or discard this patch.
src/Query/DeleteStatement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param QueryStatement|null $queryStatement
59 59
      */
60 60
     public function __construct(
61
-        string|array $from,
61
+        string | array $from,
62 62
         ?QueryStatement $queryStatement = null
63 63
     ) {
64 64
         parent::__construct($queryStatement);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @param string|array<string> $tables
75 75
      * @return mixed
76 76
      */
77
-    public function delete(string|array $tables = []): mixed
77
+    public function delete(string | array $tables = []): mixed
78 78
     {
79 79
         if (!is_array($tables)) {
80 80
             $tables = [$tables];
Please login to merge, or discard this patch.
src/Query/HavingStatement.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @param Closure|null $value
90 90
      * @return $this
91 91
      */
92
-    public function having(string|Expression|Closure $column, ?Closure $value = null): self
92
+    public function having(string | Expression | Closure $column, ?Closure $value = null): self
93 93
     {
94 94
         return $this->addCondition($column, $value, 'AND');
95 95
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      * @param Closure|null $value
100 100
      * @return $this
101 101
      */
102
-    public function orHaving(string|Expression|Closure $column, ?Closure $value = null): self
102
+    public function orHaving(string | Expression | Closure $column, ?Closure $value = null): self
103 103
     {
104 104
         return $this->addCondition($column, $value, 'OR');
105 105
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      * @return $this
121 121
      */
122 122
     protected function addCondition(
123
-        string|Expression|Closure $column,
123
+        string | Expression | Closure $column,
124 124
         ?Closure $value = null,
125 125
         string $separator = 'AND'
126 126
     ): self {
Please login to merge, or discard this patch.
src/Query/Update.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function __construct(
69 69
         Connection $connection,
70
-        string|array $table,
70
+        string | array $table,
71 71
         ?QueryStatement $queryStatement = null
72 72
     ) {
73 73
         parent::__construct($table, $queryStatement);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @param mixed $value
97 97
      * @return int
98 98
      */
99
-    public function increment(string|array $column, mixed $value = 1): int
99
+    public function increment(string | array $column, mixed $value = 1): int
100 100
     {
101 101
         return $this->incrementOrDecrement('+', $column, $value);
102 102
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      * @param mixed $value
107 107
      * @return int
108 108
      */
109
-    public function decrement(string|array $column, mixed $value = 1): int
109
+    public function decrement(string | array $column, mixed $value = 1): int
110 110
     {
111 111
         return $this->incrementOrDecrement('-', $column, $value);
112 112
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     protected function incrementOrDecrement(
121 121
         string $sign,
122
-        string|array $columns,
122
+        string | array $columns,
123 123
         mixed $value
124 124
     ): int {
125 125
         if (!is_array($columns)) {
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
 
131 131
         foreach ($columns as $key => $val) {
132 132
             if (is_numeric($key)) {
133
-                $values[$val] = function (Expression $expr) use ($sign, $val, $value) {
133
+                $values[$val] = function(Expression $expr) use ($sign, $val, $value) {
134 134
                     $expr->column($val)->op($sign)->value($value);
135 135
                 };
136 136
             } else {
137
-                $values[$key] = function (Expression $expr) use ($sign, $key, $val) {
137
+                $values[$key] = function(Expression $expr) use ($sign, $key, $val) {
138 138
                     $expr->column($key)->op($sign)->value($val);
139 139
                 };
140 140
             }
Please login to merge, or discard this patch.
src/Query/HavingExpression.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * @var string|Expression
74 74
      */
75
-    protected string|Expression $column;
75
+    protected string | Expression $column;
76 76
 
77 77
     /**
78 78
      * @var string
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * @param string $separator
96 96
      * @return $this
97 97
      */
98
-    public function init(string|Expression|Closure $column, string $separator): self
98
+    public function init(string | Expression | Closure $column, string $separator): self
99 99
     {
100 100
         if ($column instanceof Closure) {
101 101
             $column = Expression::fromClosure($column);
Please login to merge, or discard this patch.
src/Query/UpdateStatement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      * @param QueryStatement|null $queryStatement
65 65
      */
66 66
     public function __construct(
67
-        string|array $table,
67
+        string | array $table,
68 68
         ?QueryStatement $queryStatement = null
69 69
     ) {
70 70
         parent::__construct($queryStatement);
Please login to merge, or discard this patch.
src/Query/Select.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function __construct(
71 71
         Connection $connection,
72
-        string|array $tables,
72
+        string | array $tables,
73 73
         ?QueryStatement $queryStatement = null
74 74
     ) {
75 75
         parent::__construct($tables, $queryStatement);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      *
82 82
      * @return ResultSet
83 83
      */
84
-    public function select(string|Expression|Closure|array $columns = []): ResultSet
84
+    public function select(string | Expression | Closure | array $columns = []): ResultSet
85 85
     {
86 86
         parent::select($columns);
87 87
         $driver = $this->connection->getDriver();
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      *
98 98
      * @return mixed
99 99
      */
100
-    public function column(string|Expression|Closure $name): mixed
100
+    public function column(string | Expression | Closure $name): mixed
101 101
     {
102 102
         parent::column($name);
103 103
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * @return int
112 112
      */
113 113
     public function count(
114
-        string|Expression|Closure $column = '*',
114
+        string | Expression | Closure $column = '*',
115 115
         bool $distinct = false
116 116
     ): int {
117 117
         parent::count($column, $distinct);
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
      * @return int|float
126 126
      */
127 127
     public function avg(
128
-        string|Expression|Closure $column,
128
+        string | Expression | Closure $column,
129 129
         bool $distinct = false
130
-    ): int|float {
130
+    ): int | float {
131 131
         parent::avg($column, $distinct);
132 132
         return $this->getColumnResult();
133 133
     }
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
      * @return int|float
140 140
      */
141 141
     public function sum(
142
-        string|Expression|Closure $column,
142
+        string | Expression | Closure $column,
143 143
         bool $distinct = false
144
-    ): int|float {
144
+    ): int | float {
145 145
         parent::sum($column, $distinct);
146 146
         return $this->getColumnResult();
147 147
     }
@@ -153,9 +153,9 @@  discard block
 block discarded – undo
153 153
      * @return int|float
154 154
      */
155 155
     public function min(
156
-        string|Expression|Closure $column,
156
+        string | Expression | Closure $column,
157 157
         bool $distinct = false
158
-    ): int|float {
158
+    ): int | float {
159 159
         parent::min($column, $distinct);
160 160
         return $this->getColumnResult();
161 161
     }
@@ -167,9 +167,9 @@  discard block
 block discarded – undo
167 167
      * @return int|float
168 168
      */
169 169
     public function max(
170
-        string|Expression|Closure $column,
170
+        string | Expression | Closure $column,
171 171
         bool $distinct = false
172
-    ): int|float {
172
+    ): int | float {
173 173
         parent::max($column, $distinct);
174 174
         return $this->getColumnResult();
175 175
     }
Please login to merge, or discard this patch.
src/Schema/AlterTable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      * @param string|null $name
165 165
      * @return $this
166 166
      */
167
-    public function primary(string|array $columns, ?string $name = null): self
167
+    public function primary(string | array $columns, ?string $name = null): self
168 168
     {
169 169
         return $this->addKey('addPrimary', $columns, $name);
170 170
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      * @param string|null $name
176 176
      * @return $this
177 177
      */
178
-    public function unique(string|array $columns, ?string $name = null): self
178
+    public function unique(string | array $columns, ?string $name = null): self
179 179
     {
180 180
         return $this->addKey('addUnique', $columns, $name);
181 181
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * @param string|null $name
187 187
      * @return $this
188 188
      */
189
-    public function index(string|array $columns, ?string $name = null): self
189
+    public function index(string | array $columns, ?string $name = null): self
190 190
     {
191 191
         return $this->addKey('addIndex', $columns, $name);
192 192
     }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      * @param string|null $name
198 198
      * @return ForeignKey
199 199
      */
200
-    public function foreign(string|array $columns, ?string $name = null): ForeignKey
200
+    public function foreign(string | array $columns, ?string $name = null): ForeignKey
201 201
     {
202 202
         if (!is_array($columns)) {
203 203
             $columns = [$columns];
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
      */
562 562
     protected function addKey(
563 563
         string $type,
564
-        string|array $columns,
564
+        string | array $columns,
565 565
         ?string $name = null
566 566
     ): self {
567 567
         static $maps = [
Please login to merge, or discard this patch.
src/Query/Where.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * @var string|Expression
59 59
      */
60
-    protected string|Expression $column;
60
+    protected string | Expression $column;
61 61
 
62 62
     /**
63 63
      * @var string
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      * @param string $separator
81 81
      * @return $this
82 82
      */
83
-    public function init(string|Expression|Closure $column, string $separator): self
83
+    public function init(string | Expression | Closure $column, string $separator): self
84 84
     {
85 85
         if ($column instanceof Closure) {
86 86
             $column = Expression::fromClosure($column);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         string $literal,
102 102
         mixed $value,
103 103
         bool $isColumn = false
104
-    ): WhereStatement|Select|Delete|Update {
104
+    ): WhereStatement | Select | Delete | Update {
105 105
         return $this->addCondition($value, $literal, $isColumn);
106 106
     }
107 107
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      * @param bool $isColumn
111 111
      * @return WhereStatement|Select|Delete|Update
112 112
      */
113
-    public function is(mixed $value, bool $isColumn = false): WhereStatement|Select|Delete|Update
113
+    public function is(mixed $value, bool $isColumn = false): WhereStatement | Select | Delete | Update
114 114
     {
115 115
         return $this->addCondition($value, '=', $isColumn);
116 116
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      * @param bool $isColumn
121 121
      * @return WhereStatement|Select|Delete|Update
122 122
      */
123
-    public function eq(mixed $value, bool $isColumn = false): WhereStatement|Select|Delete|Update
123
+    public function eq(mixed $value, bool $isColumn = false): WhereStatement | Select | Delete | Update
124 124
     {
125 125
         return $this->is($value, $isColumn);
126 126
     }
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      * @param bool $isColumn
131 131
      * @return WhereStatement|Select|Delete|Update
132 132
      */
133
-    public function isNot(mixed $value, bool $isColumn = false): WhereStatement|Select|Delete|Update
133
+    public function isNot(mixed $value, bool $isColumn = false): WhereStatement | Select | Delete | Update
134 134
     {
135 135
         return $this->addCondition($value, '!=', $isColumn);
136 136
     }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      * @param bool $isColumn
141 141
      * @return WhereStatement|Select|Delete|Update
142 142
      */
143
-    public function neq(mixed $value, bool $isColumn = false): WhereStatement|Select|Delete|Update
143
+    public function neq(mixed $value, bool $isColumn = false): WhereStatement | Select | Delete | Update
144 144
     {
145 145
         return $this->isNot($value, $isColumn);
146 146
     }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @param bool $isColumn
151 151
      * @return WhereStatement|Select|Delete|Update
152 152
      */
153
-    public function lt(mixed $value, bool $isColumn = false): WhereStatement|Select|Delete|Update
153
+    public function lt(mixed $value, bool $isColumn = false): WhereStatement | Select | Delete | Update
154 154
     {
155 155
         return $this->addCondition($value, '<', $isColumn);
156 156
     }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @param bool $isColumn
161 161
      * @return WhereStatement|Select|Delete|Update
162 162
      */
163
-    public function gt(mixed $value, bool $isColumn = false): WhereStatement|Select|Delete|Update
163
+    public function gt(mixed $value, bool $isColumn = false): WhereStatement | Select | Delete | Update
164 164
     {
165 165
         return $this->addCondition($value, '>', $isColumn);
166 166
     }
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      * @param bool $isColumn
171 171
      * @return WhereStatement|Select|Delete|Update
172 172
      */
173
-    public function lte(mixed $value, bool $isColumn = false): WhereStatement|Select|Delete|Update
173
+    public function lte(mixed $value, bool $isColumn = false): WhereStatement | Select | Delete | Update
174 174
     {
175 175
         return $this->addCondition($value, '<=', $isColumn);
176 176
     }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      * @param bool $isColumn
181 181
      * @return WhereStatement|Select|Delete|Update
182 182
      */
183
-    public function gte(mixed $value, bool $isColumn = false): WhereStatement|Select|Delete|Update
183
+    public function gte(mixed $value, bool $isColumn = false): WhereStatement | Select | Delete | Update
184 184
     {
185 185
         return $this->addCondition($value, '>=', $isColumn);
186 186
     }
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      * @param mixed $value2
191 191
      * @return WhereStatement|Select|Delete|Update
192 192
      */
193
-    public function between(mixed $value1, mixed $value2): WhereStatement|Select|Delete|Update
193
+    public function between(mixed $value1, mixed $value2): WhereStatement | Select | Delete | Update
194 194
     {
195 195
         return $this->addBetweenCondition($value1, $value2, false);
196 196
     }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      * @param mixed $value2
201 201
      * @return WhereStatement|Select|Delete|Update
202 202
      */
203
-    public function notBetween(mixed $value1, mixed $value2): WhereStatement|Select|Delete|Update
203
+    public function notBetween(mixed $value1, mixed $value2): WhereStatement | Select | Delete | Update
204 204
     {
205 205
         return $this->addBetweenCondition($value1, $value2, true);
206 206
     }
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      * @param mixed $value
210 210
      * @return WhereStatement|Select|Delete|Update
211 211
      */
212
-    public function like(mixed $value): WhereStatement|Select|Delete|Update
212
+    public function like(mixed $value): WhereStatement | Select | Delete | Update
213 213
     {
214 214
         return $this->addLikeCondition($value, false);
215 215
     }
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      * @param mixed $value
219 219
      * @return WhereStatement|Select|Delete|Update
220 220
      */
221
-    public function notLike(mixed $value): WhereStatement|Select|Delete|Update
221
+    public function notLike(mixed $value): WhereStatement | Select | Delete | Update
222 222
     {
223 223
         return $this->addLikeCondition($value, true);
224 224
     }
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      * @param array<int, mixed>|Closure $value
228 228
      * @return WhereStatement
229 229
      */
230
-    public function in(array|Closure $value): WhereStatement
230
+    public function in(array | Closure $value): WhereStatement
231 231
     {
232 232
         return $this->addInCondition($value, false);
233 233
     }
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
      * @param array<int, mixed>|Closure $value
237 237
      * @return WhereStatement
238 238
      */
239
-    public function notIn(array|Closure $value): WhereStatement
239
+    public function notIn(array | Closure $value): WhereStatement
240 240
     {
241 241
         return $this->addInCondition($value, true);
242 242
     }
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     /**
245 245
      * @return WhereStatement|Select|Delete|Update
246 246
      */
247
-    public function isNull(): WhereStatement|Select|Delete|Update
247
+    public function isNull(): WhereStatement | Select | Delete | Update
248 248
     {
249 249
         return $this->addNullCondition(false);
250 250
     }
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     /**
253 253
      * @return WhereStatement|Select|Delete|Update
254 254
      */
255
-    public function isNotNull(): WhereStatement|Select|Delete|Update
255
+    public function isNotNull(): WhereStatement | Select | Delete | Update
256 256
     {
257 257
         return $this->addNullCondition(true);
258 258
     }
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
     /**
261 261
      * @return WhereStatement|Select|Delete|Update
262 262
      */
263
-    public function nop(): WhereStatement|Select|Delete|Update
263
+    public function nop(): WhereStatement | Select | Delete | Update
264 264
     {
265 265
         $this->queryStatement->addWhereNop($this->column, $this->separator);
266 266
 
@@ -289,9 +289,9 @@  discard block
 block discarded – undo
289 289
         mixed $value,
290 290
         string $operator,
291 291
         bool $isColumn = false
292
-    ): WhereStatement|Select|Delete|Update {
292
+    ): WhereStatement | Select | Delete | Update {
293 293
         if ($isColumn && is_string($value)) {
294
-            $value = function (Expression $expr) use ($value) {
294
+            $value = function(Expression $expr) use ($value) {
295 295
                 return $expr->column($value);
296 296
             };
297 297
         }
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         mixed $value1,
316 316
         mixed $value2,
317 317
         bool $not
318
-    ): WhereStatement|Select|Delete|update {
318
+    ): WhereStatement | Select | Delete | update {
319 319
         $this->queryStatement->addWhereBetween(
320 320
             $this->column,
321 321
             $value1,
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      * @param bool $not
333 333
      * @return WhereStatement|Select|Delete|update
334 334
      */
335
-    protected function addLikeCondition(string $pattern, bool $not): WhereStatement|Select|Delete|update
335
+    protected function addLikeCondition(string $pattern, bool $not): WhereStatement | Select | Delete | update
336 336
     {
337 337
         $this->queryStatement->addWhereLike(
338 338
             $this->column,
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
      * @param bool $not
350 350
      * @return WhereStatement|Select|Delete|update
351 351
      */
352
-    protected function addInCondition(mixed $value, bool $not): WhereStatement|Select|Delete|update
352
+    protected function addInCondition(mixed $value, bool $not): WhereStatement | Select | Delete | update
353 353
     {
354 354
         $this->queryStatement->addWhereIn(
355 355
             $this->column,
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
      * @param bool $not
366 366
      * @return WhereStatement|Select|Delete|Update
367 367
      */
368
-    protected function addNullCondition(bool $not): WhereStatement|Select|Delete|Update
368
+    protected function addNullCondition(bool $not): WhereStatement | Select | Delete | Update
369 369
     {
370 370
         $this->queryStatement->addWhereNull(
371 371
             $this->column,
Please login to merge, or discard this patch.