Passed
Push — master ( d9a4d3...d15b5c )
by CodexShaper
02:08
created
src/Drivers/MysqlDumper.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -73,39 +73,39 @@
 block discarded – undo
73 73
         ];
74 74
 
75 75
         if ($this->dbName) {
76
-            $options['database'] = $this->dbName;
76
+            $options[ 'database' ] = $this->dbName;
77 77
         }
78 78
         if ($this->socket) {
79
-            $options['socket'] = "--socket={$this->socket}";
79
+            $options[ 'socket' ] = "--socket={$this->socket}";
80 80
         }
81 81
         if ($this->skipComments) {
82
-            $options['skipComments'] = '--skip-comments';
82
+            $options[ 'skipComments' ] = '--skip-comments';
83 83
         }
84 84
         if (!$this->createTables) {
85
-            $options['createTables'] = '--no-create-info';
85
+            $options[ 'createTables' ] = '--no-create-info';
86 86
         }
87 87
         if ($this->singleTransaction) {
88
-            $options['singleTransaction'] = '--single-transaction';
88
+            $options[ 'singleTransaction' ] = '--single-transaction';
89 89
         }
90 90
 
91 91
         if ($this->skipLockTables) {
92
-            $options['skipLockTables'] = '--skip-lock-tables';
92
+            $options[ 'skipLockTables' ] = '--skip-lock-tables';
93 93
         }
94 94
 
95 95
         if ($this->quick) {
96
-            $options['quick'] = '--quick';
96
+            $options[ 'quick' ] = '--quick';
97 97
         }
98 98
         if ($this->defaultCharacterSet) {
99
-            $options['defaultCharacterSet'] = '--default-character-set=' . $this->defaultCharacterSet;
99
+            $options[ 'defaultCharacterSet' ] = '--default-character-set=' . $this->defaultCharacterSet;
100 100
         }
101 101
         if (count($this->tables) > 0) {
102
-            $options['tables'] = '--tables ' . implode(' ', $this->tables);
102
+            $options[ 'tables' ] = '--tables ' . implode(' ', $this->tables);
103 103
         }
104 104
         // Ignore Tables
105
-        $ignoreTables = [];
105
+        $ignoreTables = [ ];
106 106
         foreach ($this->ignoreTables as $tableName) {
107
-            $ignoreTables[]          = "--ignore-table=" . $databaseArg . "." . $tableName;
108
-            $options['ignoreTables'] = implode(' ', $ignoreTables);
107
+            $ignoreTables[ ]          = "--ignore-table=" . $databaseArg . "." . $tableName;
108
+            $options[ 'ignoreTables' ] = implode(' ', $ignoreTables);
109 109
         }
110 110
         return $options;
111 111
     }
Please login to merge, or discard this patch.
src/Drivers/MongoDumper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     protected function prepareRestoreCommand(string $filePath): string
124 124
     {
125 125
 
126
-        $archive = $this->isCompress ?  "--gzip --archive" : "";
126
+        $archive = $this->isCompress ? "--gzip --archive" : "";
127 127
 
128 128
         $restoreCommand = sprintf("%smongorestore %s %s %s %s %s",
129 129
             $this->dumpCommandPath,
Please login to merge, or discard this patch.