Passed
Push — main ( 6b0a6d...3c8d3b )
by Thierry
02:27
created
src/DbAdmin/ExportAdmin.php 2 patches
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -285,8 +285,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -610,8 +610,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.