@@ -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 | } |
@@ -610,8 +610,7 @@ |
||
| 610 | 610 | foreach (array_unique(array_merge($databases['list'], $databases['data'])) as $database) { |
| 611 | 611 | try { |
| 612 | 612 | $this->dumpDatabase($database, $style); |
| 613 | - } |
|
| 614 | - catch (\Exception $e) { |
|
| 613 | + } catch (\Exception $e) { |
|
| 615 | 614 | return $e->getMessage(); |
| 616 | 615 | } |
| 617 | 616 | } |