Completed
Pull Request — 1.1 (#3)
by Raphaël
02:24
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -246,8 +246,7 @@
 block discarded – undo
246 246
             foreach ($table->getColumns() as $column) {
247 247
                 if (in_array($column->getName(),['id','uid'])) {
248 248
                     continue;
249
-                }
250
-                else {
249
+                } else {
251 250
                     $field = $fieldsByName[$column->getName()];
252 251
                     $getterName = $field['getter'];
253 252
                     $data[$column->getName()] = $record->$getterName();
Please login to merge, or discard this patch.
src/ZohoDatabaseSyncZoho.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,6 @@
 block discarded – undo
7 7
 use Psr\Log\NullLogger;
8 8
 use Wabel\Zoho\CRM\AbstractZohoDao;
9 9
 use Wabel\Zoho\CRM\ZohoBeanInterface;
10
-use Wabel\Zoho\CRM\Exception\ZohoCRMException;
11
-use Wabel\Zoho\CRM\Exception\ZohoCRMResponseException;
12 10
 use function Stringy\create as s;
13 11
 
14 12
 /**
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                     foreach ($row as $columnName => $columnValue) {
96 96
                         if (in_array($columnName,['id','uid'])) {
97 97
                             continue;
98
-                        }else{
98
+                        } else{
99 99
                            if($columnValue){
100 100
                                $zohoBean->{$fieldsMatching[$columnName]['setter']}($columnValue);
101 101
                            }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                     $zohoBean->setZohoId($row['id']);
110 110
                     if (in_array($columnName,['uid'])) {
111 111
                         continue;
112
-                    }else{
112
+                    } else{
113 113
                         $zohoBean->{$fieldsMatching[$columnName]['setter']}($row[$columnName]);
114 114
                         $zohoBeans[] = $zohoBean;
115 115
                         $rowsDeleted[] = $row['uid'];
Please login to merge, or discard this patch.