@@ -6,7 +6,6 @@ |
||
6 | 6 | use Psr\Log\LoggerInterface; |
7 | 7 | use Psr\Log\NullLogger; |
8 | 8 | use Wabel\Zoho\CRM\AbstractZohoDao; |
9 | -use Wabel\Zoho\CRM\Request\Response; |
|
10 | 9 | |
11 | 10 | /** |
12 | 11 | * This class is in charge of synchronizing one table of your database with Zoho records. |
@@ -95,18 +95,15 @@ |
||
95 | 95 | && array_key_exists('id', $user->{$fieldMethod}()) |
96 | 96 | ) { |
97 | 97 | $data[$column->getName()] = $user->{$fieldMethod}()['name']; |
98 | - } |
|
99 | - elseif (method_exists($user, $fieldMethod) |
|
98 | + } elseif (method_exists($user, $fieldMethod) |
|
100 | 99 | && is_object($user->{$fieldMethod}()) && method_exists($user->{$fieldMethod}(), 'getName') |
101 | 100 | ) { |
102 | 101 | $object = $user->{$fieldMethod}(); |
103 | 102 | $data[$column->getName()] = $object->getName(); |
104 | - } |
|
105 | - elseif($column->getName() === 'Currency') { |
|
103 | + } elseif($column->getName() === 'Currency') { |
|
106 | 104 | //Todo: Do a pull request about \ZCRMUser::geCurrency() to \ZCRMUser::getCurrency() |
107 | 105 | $data[$column->getName()] = $user->geCurrency(); |
108 | - } |
|
109 | - else { |
|
106 | + } else { |
|
110 | 107 | continue; |
111 | 108 | } |
112 | 109 | } |
@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Doctrine\DBAL\Connection; |
5 | 5 | use Doctrine\DBAL\Logging\SQLLogger; |
6 | -use Doctrine\DBAL\SQLParserUtils; |
|
7 | 6 | use function PHPSTORM_META\type; |
8 | 7 | use Psr\Log\LoggerInterface; |
9 | 8 |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Psr\Log\LoggerInterface; |
8 | 8 | use Psr\Log\NullLogger; |
9 | 9 | use Wabel\Zoho\CRM\AbstractZohoDao; |
10 | -use Wabel\Zoho\CRM\Request\Response; |
|
11 | 10 | use zcrmsdk\crm\setup\users\ZCRMUser; |
12 | 11 | |
13 | 12 | /** |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use Logger\Formatters\DateTimeFormatter; |
16 | 16 | use Mouf\Utils\Log\Psr\MultiLogger; |
17 | 17 | use Wabel\Zoho\CRM\Request\Response; |
18 | -use zcrmsdk\crm\utility\ZCRMConfigUtil; |
|
19 | 18 | |
20 | 19 | class ZohoSyncDatabaseCommand extends Command |
21 | 20 | { |