@@ -4,7 +4,6 @@ |
||
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; |
@@ -246,8 +246,7 @@ |
||
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(); |
@@ -7,8 +7,6 @@ |
||
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 | /** |
@@ -95,7 +95,7 @@ discard block |
||
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 |
||
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']; |