@@ -285,8 +285,7 @@ discard block |
||
285 | 285 | $row[$key] = '"' . str_replace('"', '""', $val) . '"'; |
286 | 286 | } |
287 | 287 | } |
288 | - $separator = $this->options['format'] == 'csv' ? ',' : |
|
289 | - ($this->options['format'] == 'tsv' ? "\t" : ';'); |
|
288 | + $separator = $this->options['format'] == 'csv' ? ',' : ($this->options['format'] == 'tsv' ? "\t" : ';'); |
|
290 | 289 | $this->queries[] = implode($separator, $row); |
291 | 290 | } |
292 | 291 | |
@@ -395,7 +394,7 @@ discard block |
||
395 | 394 | } else { |
396 | 395 | if (!$this->insert) { |
397 | 396 | $this->insert = 'INSERT INTO ' . $this->driver->table($table) . ' (' . |
398 | - implode(', ', array_map(function ($key) { |
|
397 | + implode(', ', array_map(function($key) { |
|
399 | 398 | return $this->driver->escapeId($key); |
400 | 399 | }, $keys)) . ') VALUES'; |
401 | 400 | } |