Completed
Pull Request — 3.1 (#43)
by
unknown
01:30
created
src/ZohoDatabaseCopier.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -95,18 +95,15 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/Log/ZohoSyncSQLLogger.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ZohoDatabaseModelSync.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/ZohoSyncDatabaseCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.