Completed
Pull Request — 3.1 (#43)
by
unknown
01:30
created
src/ZohoSyncDatabaseCommand.php 2 patches
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.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $this->zohoDatabaseModelSync = $zohoDatabaseModelSync;
102 102
         $this->zohoDatabaseCopier = $zohoDatabaseCopier;
103 103
         $this->zohoDatabaseSync = $zohoDatabaseSync;
104
-        $this->zohoEntitiesGenerator =  $zohoEntitiesGenerator;
104
+        $this->zohoEntitiesGenerator = $zohoEntitiesGenerator;
105 105
         $this->zohoClient = $zohoClient;
106 106
         $this->pathZohoDaos = $pathZohoDaos;
107 107
         $this->namespaceZohoDaos = $namespaceZohoDaos;
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             if ($input->getOption('log-path') && $input->getOption('clear-logs')) {
138 138
                 $output->writeln('Clearing logs...');
139 139
                 $path = $input->getOption('log-path');
140
-                $logFile = $path . '/ZCRMClientLibrary.log';
140
+                $logFile = $path.'/ZCRMClientLibrary.log';
141 141
                 if (file_exists($logFile)) {
142 142
                     if (is_writable($logFile)) {
143 143
                         if (file_put_contents($logFile, '') === false) {
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 }
152 152
             }
153 153
 
154
-            if(!$input->getOption('limit')) {
154
+            if (!$input->getOption('limit')) {
155 155
                 ini_set('memory_limit', '-1');
156 156
             }
157 157
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             if ($input->getOption('log-path') && $input->getOption('dump-logs')) {
177 177
                 $output->writeln('Dumping logs...');
178 178
                 $path = $input->getOption('log-path');
179
-                $logFile = $path . '/ZCRMClientLibrary.log';
179
+                $logFile = $path.'/ZCRMClientLibrary.log';
180 180
                 if (file_exists($logFile)) {
181 181
                     if (is_readable($logFile)) {
182 182
                         $output->writeln(file_get_contents($logFile));
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
     {
297 297
         $output->writeln('Start to synchronize Zoho data into Zoho CRM.');
298 298
         foreach ($this->zohoDaos as $zohoDao) {
299
-            if($zohoDao->getFieldFromFieldName('createdTime')) {
299
+            if ($zohoDao->getFieldFromFieldName('createdTime')) {
300 300
                 $this->zohoDatabaseSync->pushToZoho($zohoDao);
301 301
             }
302 302
         }
Please login to merge, or discard this patch.