Completed
Push — 1.0 ( 097590...369bdd )
by David
05:39
created
src/ZohoDatabaseCopier.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             $table->addColumn($columnName, $type, $options);
111 111
 
112 112
             if ($index) {
113
-                $table->addIndex([ $columnName ]);
113
+                $table->addIndex([$columnName]);
114 114
             }
115 115
         }
116 116
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
                 }
172 172
             }
173 173
 
174
-            $select->execute([ 'id' => $record->getZohoId() ]);
174
+            $select->execute(['id' => $record->getZohoId()]);
175 175
             $result = $select->fetch(\PDO::FETCH_ASSOC);
176 176
             if ($result === false) {
177 177
                 $data['id'] = $record->getZohoId();
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 
180 180
                 $this->connection->insert($tableName, $data, $types);
181 181
             } else {
182
-                $identifier = ['id' => $record->getZohoId() ];
182
+                $identifier = ['id' => $record->getZohoId()];
183 183
                 $types['id'] = 'string';
184 184
 
185 185
                 $this->connection->update($tableName, $data, $identifier, $types);
Please login to merge, or discard this patch.