@@ -106,10 +106,10 @@ discard block |
||
106 | 106 | $database = $foreignKey->database; |
107 | 107 | $schema = $foreignKey->schema; |
108 | 108 | $onActions = $this->driver->actions(); |
109 | - $sources = implode(', ', array_map(function ($idf) { |
|
109 | + $sources = implode(', ', array_map(function($idf) { |
|
110 | 110 | return $this->escapeId($idf); |
111 | 111 | }, $foreignKey->source)); |
112 | - $targets = implode(', ', array_map(function ($idf) { |
|
112 | + $targets = implode(', ', array_map(function($idf) { |
|
113 | 113 | return $this->escapeId($idf); |
114 | 114 | }, $foreignKey->target)); |
115 | 115 | |
@@ -282,8 +282,7 @@ discard block |
||
282 | 282 | */ |
283 | 283 | private function notQuery(QueryEntity $queryEntity, string $found, array &$match) |
284 | 284 | { |
285 | - return preg_match('(' . ($found == '/*' ? '\*/' : ($found == '[' ? ']' : |
|
286 | - (preg_match('~^-- |^#~', $found) ? "\n" : preg_quote($found) . "|\\\\."))) . '|$)s', |
|
285 | + return preg_match('(' . ($found == '/*' ? '\*/' : ($found == '[' ? ']' : (preg_match('~^-- |^#~', $found) ? "\n" : preg_quote($found) . "|\\\\."))) . '|$)s', |
|
287 | 286 | $queryEntity->queries, $match, PREG_OFFSET_CAPTURE, $queryEntity->offset); |
288 | 287 | } |
289 | 288 |