@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | $row[$key] = '"' . str_replace('"', '""', $val) . '"'; |
54 | 54 | } |
55 | 55 | } |
56 | - $separator = $this->options['format'] === 'csv' ? ',' : |
|
57 | - ($this->options['format'] === 'tsv' ? "\t" : ';'); |
|
56 | + $separator = $this->options['format'] === 'csv' ? ',' : ($this->options['format'] === 'tsv' ? "\t" : ';'); |
|
58 | 57 | $this->queries[] = implode($separator, $row); |
59 | 58 | } |
60 | 59 | |
@@ -203,7 +202,7 @@ discard block |
||
203 | 202 | } |
204 | 203 | if (!$this->insert) { |
205 | 204 | $this->insert = 'INSERT INTO ' . $this->driver->table($table) . ' (' . |
206 | - implode(', ', array_map(function ($key) { |
|
205 | + implode(', ', array_map(function($key) { |
|
207 | 206 | return $this->driver->escapeId($key); |
208 | 207 | }, $keys)) . ') VALUES'; |
209 | 208 | } |