Completed
Pull Request — 3.1 (#44)
by
unknown
02:03 queued 44s
created
src/ZohoSyncDatabaseCommand.php 1 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
                 $this->logger->info('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
                 $this->logger->info('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
                         $this->logger->info(file_get_contents($logFile));
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     {
286 286
         $this->logger->info('Start to synchronize Zoho data into Zoho CRM.');
287 287
         foreach ($this->zohoDaos as $zohoDao) {
288
-            if($zohoDao->getFieldFromFieldName('createdTime')) {
288
+            if ($zohoDao->getFieldFromFieldName('createdTime')) {
289 289
                 $this->zohoDatabaseSync->pushToZoho($zohoDao);
290 290
             }
291 291
         }
Please login to merge, or discard this patch.