@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | public function applyQueries(string $query, array $tables, $escape = null) |
| 232 | 232 | { |
| 233 | 233 | if (!$escape) { |
| 234 | - $escape = function ($table) { |
|
| 234 | + $escape = function($table) { |
|
| 235 | 235 | return $this->table($table); |
| 236 | 236 | }; |
| 237 | 237 | } |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | { |
| 378 | 378 | $clauses = []; |
| 379 | 379 | $wheres = $where["where"] ?? []; |
| 380 | - foreach ((array) $wheres as $key => $value) { |
|
| 380 | + foreach ((array)$wheres as $key => $value) { |
|
| 381 | 381 | $key = $this->util->bracketEscape($key, 1); // 1 - back |
| 382 | 382 | $column = $this->util->escapeKey($key); |
| 383 | 383 | $clauses[] = $column . |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | } |
| 394 | 394 | } |
| 395 | 395 | $nulls = $where["null"] ?? []; |
| 396 | - foreach ((array) $nulls as $key) { |
|
| 396 | + foreach ((array)$nulls as $key) { |
|
| 397 | 397 | $clauses[] = $this->util->escapeKey($key) . " IS NULL"; |
| 398 | 398 | } |
| 399 | 399 | return implode(" AND ", $clauses); |