@@ -91,10 +91,10 @@ discard block |
||
| 91 | 91 | $database = $foreignKey->database; |
| 92 | 92 | $schema = $foreignKey->schema; |
| 93 | 93 | $onActions = $this->driver->actions(); |
| 94 | - $sources = implode(', ', array_map(function ($idf) { |
|
| 94 | + $sources = implode(', ', array_map(function($idf) { |
|
| 95 | 95 | return $this->escapeId($idf); |
| 96 | 96 | }, $foreignKey->source)); |
| 97 | - $targets = implode(', ', array_map(function ($idf) { |
|
| 97 | + $targets = implode(', ', array_map(function($idf) { |
|
| 98 | 98 | return $this->escapeId($idf); |
| 99 | 99 | }, $foreignKey->target)); |
| 100 | 100 | |
@@ -195,8 +195,7 @@ discard block |
||
| 195 | 195 | */ |
| 196 | 196 | private function notQuery(QueryEntity $queryEntity, string $found, array &$match) |
| 197 | 197 | { |
| 198 | - return preg_match('(' . ($found == '/*' ? '\*/' : ($found == '[' ? ']' : |
|
| 199 | - (preg_match('~^-- |^#~', $found) ? "\n" : preg_quote($found) . "|\\\\."))) . '|$)s', |
|
| 198 | + return preg_match('(' . ($found == '/*' ? '\*/' : ($found == '[' ? ']' : (preg_match('~^-- |^#~', $found) ? "\n" : preg_quote($found) . "|\\\\."))) . '|$)s', |
|
| 200 | 199 | $queryEntity->queries, $match, PREG_OFFSET_CAPTURE, $queryEntity->offset) > 0; |
| 201 | 200 | } |
| 202 | 201 | |