@@ -82,10 +82,10 @@ discard block |
||
82 | 82 | $database = $foreignKey->database; |
83 | 83 | $schema = $foreignKey->schema; |
84 | 84 | $onActions = $this->driver->actions(); |
85 | - $sources = implode(', ', array_map(function ($idf) { |
|
85 | + $sources = implode(', ', array_map(function($idf) { |
|
86 | 86 | return $this->escapeId($idf); |
87 | 87 | }, $foreignKey->source)); |
88 | - $targets = implode(', ', array_map(function ($idf) { |
|
88 | + $targets = implode(', ', array_map(function($idf) { |
|
89 | 89 | return $this->escapeId($idf); |
90 | 90 | }, $foreignKey->target)); |
91 | 91 | |
@@ -148,8 +148,7 @@ discard block |
||
148 | 148 | */ |
149 | 149 | public function applySqlFunction(string $function, string $column) |
150 | 150 | { |
151 | - return ($function ? ($function == "unixepoch" ? "DATETIME($column, '$function')" : |
|
152 | - ($function == "count distinct" ? "COUNT(DISTINCT " : strtoupper("$function(")) . "$column)") : $column); |
|
151 | + return ($function ? ($function == "unixepoch" ? "DATETIME($column, '$function')" : ($function == "count distinct" ? "COUNT(DISTINCT " : strtoupper("$function(")) . "$column)") : $column); |
|
153 | 152 | } |
154 | 153 | |
155 | 154 | /** |