@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public static function load(): void |
31 | 31 | { |
32 | - if (! isset(self::$loader)) { |
|
32 | + if (!isset(self::$loader)) { |
|
33 | 33 | // Create loader object |
34 | 34 | self::$loader = new Loader(); |
35 | 35 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | public static function gettext(string $msgid): string |
64 | 64 | { |
65 | - if (! class_exists(Loader::class, true)) { |
|
65 | + if (!class_exists(Loader::class, true)) { |
|
66 | 66 | return $msgid; |
67 | 67 | } |
68 | 68 |
@@ -99,38 +99,38 @@ |
||
99 | 99 | * |
100 | 100 | * @var Expression[]|null |
101 | 101 | */ |
102 | - public array|null $tables = null; |
|
102 | + public array | null $tables = null; |
|
103 | 103 | |
104 | 104 | /** |
105 | 105 | * The updated values. |
106 | 106 | * |
107 | 107 | * @var SetOperation[]|null |
108 | 108 | */ |
109 | - public array|null $set = null; |
|
109 | + public array | null $set = null; |
|
110 | 110 | |
111 | 111 | /** |
112 | 112 | * Conditions used for filtering each row of the result set. |
113 | 113 | * |
114 | 114 | * @var Condition[]|null |
115 | 115 | */ |
116 | - public array|null $where = null; |
|
116 | + public array | null $where = null; |
|
117 | 117 | |
118 | 118 | /** |
119 | 119 | * Specifies the order of the rows in the result set. |
120 | 120 | * |
121 | 121 | * @var OrderKeyword[]|null |
122 | 122 | */ |
123 | - public array|null $order = null; |
|
123 | + public array | null $order = null; |
|
124 | 124 | |
125 | 125 | /** |
126 | 126 | * Conditions used for limiting the size of the result set. |
127 | 127 | */ |
128 | - public Limit|null $limit = null; |
|
128 | + public Limit | null $limit = null; |
|
129 | 129 | |
130 | 130 | /** |
131 | 131 | * Joins. |
132 | 132 | * |
133 | 133 | * @var JoinKeyword[]|null |
134 | 134 | */ |
135 | - public array|null $join = null; |
|
135 | + public array | null $join = null; |
|
136 | 136 | } |
@@ -33,5 +33,5 @@ |
||
33 | 33 | * |
34 | 34 | * @var Expression[]|null |
35 | 35 | */ |
36 | - public array|null $tables = null; |
|
36 | + public array | null $tables = null; |
|
37 | 37 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * The parser of the statement to be explained |
36 | 36 | */ |
37 | - public Parser|null $bodyParser = null; |
|
37 | + public Parser | null $bodyParser = null; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * The statement alias, could be any of the following: |
@@ -47,22 +47,22 @@ discard block |
||
47 | 47 | /** |
48 | 48 | * The connection identifier, if used. |
49 | 49 | */ |
50 | - public int|null $connectionId = null; |
|
50 | + public int | null $connectionId = null; |
|
51 | 51 | |
52 | 52 | /** |
53 | 53 | * The explained database for the table's name, if used. |
54 | 54 | */ |
55 | - public string|null $explainedDatabase = null; |
|
55 | + public string | null $explainedDatabase = null; |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * The explained table's name, if used. |
59 | 59 | */ |
60 | - public string|null $explainedTable = null; |
|
60 | + public string | null $explainedTable = null; |
|
61 | 61 | |
62 | 62 | /** |
63 | 63 | * The explained column's name, if used. |
64 | 64 | */ |
65 | - public string|null $explainedColumn = null; |
|
65 | + public string | null $explainedColumn = null; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * @param Parser $parser the instance that requests parsing |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * The name of the truncated table. |
25 | 25 | */ |
26 | - public Expression|null $table = null; |
|
26 | + public Expression | null $table = null; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Special build method for truncate statement as Statement::build would return empty string. |
@@ -71,10 +71,10 @@ |
||
71 | 71 | * |
72 | 72 | * @var Expression[]|null |
73 | 73 | */ |
74 | - public array|null $fields = null; |
|
74 | + public array | null $fields = null; |
|
75 | 75 | |
76 | 76 | /** |
77 | 77 | * Table of the dropped index. |
78 | 78 | */ |
79 | - public Expression|null $table = null; |
|
79 | + public Expression | null $table = null; |
|
80 | 80 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * The name of the function and its parameters. |
25 | 25 | */ |
26 | - public FunctionCall|null $call = null; |
|
26 | + public FunctionCall | null $call = null; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Build statement for CALL. |
@@ -78,21 +78,21 @@ |
||
78 | 78 | /** |
79 | 79 | * Options used in current statement. |
80 | 80 | */ |
81 | - public OptionsArray|null $options = null; |
|
81 | + public OptionsArray | null $options = null; |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * The end options of this query. |
85 | 85 | * |
86 | 86 | * @see SetStatement::STATEMENT_END_OPTIONS |
87 | 87 | */ |
88 | - public OptionsArray|null $endOptions = null; |
|
88 | + public OptionsArray | null $endOptions = null; |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * The updated values. |
92 | 92 | * |
93 | 93 | * @var SetOperation[]|null |
94 | 94 | */ |
95 | - public array|null $set = null; |
|
95 | + public array | null $set = null; |
|
96 | 96 | |
97 | 97 | public function build(): string |
98 | 98 | { |
@@ -242,67 +242,67 @@ discard block |
||
242 | 242 | * |
243 | 243 | * @var IndexHint[]|null |
244 | 244 | */ |
245 | - public array|null $indexHints = null; |
|
245 | + public array | null $indexHints = null; |
|
246 | 246 | |
247 | 247 | /** |
248 | 248 | * Partitions used as source for this statement. |
249 | 249 | */ |
250 | - public ArrayObj|null $partition = null; |
|
250 | + public ArrayObj | null $partition = null; |
|
251 | 251 | |
252 | 252 | /** |
253 | 253 | * Conditions used for filtering each row of the result set. |
254 | 254 | * |
255 | 255 | * @var Condition[]|null |
256 | 256 | */ |
257 | - public array|null $where = null; |
|
257 | + public array | null $where = null; |
|
258 | 258 | |
259 | 259 | /** |
260 | 260 | * Conditions used for grouping the result set. |
261 | 261 | * |
262 | 262 | * @var GroupKeyword[]|null |
263 | 263 | */ |
264 | - public array|null $group = null; |
|
264 | + public array | null $group = null; |
|
265 | 265 | |
266 | 266 | /** |
267 | 267 | * List of options available for the GROUP BY component. |
268 | 268 | */ |
269 | - public OptionsArray|null $groupOptions = null; |
|
269 | + public OptionsArray | null $groupOptions = null; |
|
270 | 270 | |
271 | 271 | /** |
272 | 272 | * Conditions used for filtering the result set. |
273 | 273 | * |
274 | 274 | * @var Condition[]|null |
275 | 275 | */ |
276 | - public array|null $having = null; |
|
276 | + public array | null $having = null; |
|
277 | 277 | |
278 | 278 | /** |
279 | 279 | * Specifies the order of the rows in the result set. |
280 | 280 | * |
281 | 281 | * @var OrderKeyword[]|null |
282 | 282 | */ |
283 | - public array|null $order = null; |
|
283 | + public array | null $order = null; |
|
284 | 284 | |
285 | 285 | /** |
286 | 286 | * Conditions used for limiting the size of the result set. |
287 | 287 | */ |
288 | - public Limit|null $limit = null; |
|
288 | + public Limit | null $limit = null; |
|
289 | 289 | |
290 | 290 | /** |
291 | 291 | * Procedure that should process the data in the result set. |
292 | 292 | */ |
293 | - public FunctionCall|null $procedure = null; |
|
293 | + public FunctionCall | null $procedure = null; |
|
294 | 294 | |
295 | 295 | /** |
296 | 296 | * Destination of this result set. |
297 | 297 | */ |
298 | - public IntoKeyword|null $into = null; |
|
298 | + public IntoKeyword | null $into = null; |
|
299 | 299 | |
300 | 300 | /** |
301 | 301 | * Joins. |
302 | 302 | * |
303 | 303 | * @var JoinKeyword[]|null |
304 | 304 | */ |
305 | - public array|null $join = null; |
|
305 | + public array | null $join = null; |
|
306 | 306 | |
307 | 307 | /** |
308 | 308 | * Unions. |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * |
317 | 317 | * @see SelectStatement::STATEMENT_END_OPTIONS |
318 | 318 | */ |
319 | - public OptionsArray|null $endOptions = null; |
|
319 | + public OptionsArray | null $endOptions = null; |
|
320 | 320 | |
321 | 321 | /** |
322 | 322 | * Gets the clauses of this statement. |
@@ -371,28 +371,28 @@ discard block |
||
371 | 371 | $expressions = $this->from; |
372 | 372 | |
373 | 373 | // Adding expressions from JOIN. |
374 | - if (! empty($this->join)) { |
|
374 | + if (!empty($this->join)) { |
|
375 | 375 | foreach ($this->join as $join) { |
376 | 376 | $expressions[] = $join->expr; |
377 | 377 | } |
378 | 378 | } |
379 | 379 | |
380 | 380 | foreach ($expressions as $expr) { |
381 | - if (! isset($expr->table) || ($expr->table === '')) { |
|
381 | + if (!isset($expr->table) || ($expr->table === '')) { |
|
382 | 382 | continue; |
383 | 383 | } |
384 | 384 | |
385 | 385 | $thisDb = isset($expr->database) && ($expr->database !== '') ? |
386 | 386 | $expr->database : $database; |
387 | 387 | |
388 | - if (! isset($retval[$thisDb])) { |
|
388 | + if (!isset($retval[$thisDb])) { |
|
389 | 389 | $retval[$thisDb] = [ |
390 | 390 | 'alias' => null, |
391 | 391 | 'tables' => [], |
392 | 392 | ]; |
393 | 393 | } |
394 | 394 | |
395 | - if (! isset($retval[$thisDb]['tables'][$expr->table])) { |
|
395 | + if (!isset($retval[$thisDb]['tables'][$expr->table])) { |
|
396 | 396 | $retval[$thisDb]['tables'][$expr->table] = [ |
397 | 397 | 'alias' => isset($expr->alias) && ($expr->alias !== '') ? |
398 | 398 | $expr->alias : null, |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | ]; |
401 | 401 | } |
402 | 402 | |
403 | - if (! isset($tables[$thisDb])) { |
|
403 | + if (!isset($tables[$thisDb])) { |
|
404 | 404 | $tables[$thisDb] = []; |
405 | 405 | } |
406 | 406 | |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | } |
409 | 409 | |
410 | 410 | foreach ($this->expr as $expr) { |
411 | - if (! isset($expr->column, $expr->alias) || ($expr->column === '') || ($expr->alias === '')) { |
|
411 | + if (!isset($expr->column, $expr->alias) || ($expr->column === '') || ($expr->alias === '')) { |
|
412 | 412 | continue; |
413 | 413 | } |
414 | 414 |