Completed
Pull Request — 1.1 (#22)
by
unknown
06:09
created
src/ZohoDatabaseCopier.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\DBAL\Connection;
6 6
 use Doctrine\DBAL\Schema\Schema;
7
-use Doctrine\DBAL\Schema\SchemaDiff;
8 7
 use Psr\Log\LoggerInterface;
9 8
 use Psr\Log\NullLogger;
10 9
 use Wabel\Zoho\CRM\AbstractZohoDao;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -283,12 +283,12 @@
 block discarded – undo
283 283
         }
284 284
 
285 285
         foreach ($deletedRecordIds as $id) {
286
-            $this->connection->delete($tableName, [ 'id' => $id ]);
286
+            $this->connection->delete($tableName, ['id' => $id]);
287 287
             if ($twoWaysSync) {
288 288
                 // TODO: we could detect if there are changes to be updated to the server and try to warn with a log message
289 289
                 // Also, let's remove the newly created field (because of the trigger) to avoid looping back to Zoho
290
-                $this->connection->delete('local_delete', [ 'table_name' => $tableName, 'id' => $id ]);
291
-                $this->connection->delete('local_update', [ 'table_name' => $tableName, 'id' => $id ]);
290
+                $this->connection->delete('local_delete', ['table_name' => $tableName, 'id' => $id]);
291
+                $this->connection->delete('local_update', ['table_name' => $tableName, 'id' => $id]);
292 292
             }
293 293
         }
294 294
 
Please login to merge, or discard this patch.