@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $this->zohoDatabaseModelSync = $zohoDatabaseModelSync; |
100 | 100 | $this->zohoDatabaseCopier = $zohoDatabaseCopier; |
101 | 101 | $this->zohoDatabaseSync = $zohoDatabaseSync; |
102 | - $this->zohoEntitiesGenerator = $zohoEntitiesGenerator; |
|
102 | + $this->zohoEntitiesGenerator = $zohoEntitiesGenerator; |
|
103 | 103 | $this->zohoClient = $zohoClient; |
104 | 104 | $this->pathZohoDaos = $pathZohoDaos; |
105 | 105 | $this->namespaceZohoDaos = $namespaceZohoDaos; |
@@ -127,8 +127,8 @@ discard block |
||
127 | 127 | $this->lock->acquireLock(); |
128 | 128 | } |
129 | 129 | |
130 | - if(!$input->getOption('limit')){ |
|
131 | - ini_set('memory_limit','-1'); |
|
130 | + if (!$input->getOption('limit')) { |
|
131 | + ini_set('memory_limit', '-1'); |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | $this->logger->addLogger(new DateTimeFormatter(new ConsoleLogger($output))); |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | */ |
195 | 195 | private function getListFieldName(AbstractZohoDao $zohoDao) |
196 | 196 | { |
197 | - $fieldNames= array(); |
|
197 | + $fieldNames = array(); |
|
198 | 198 | foreach ($zohoDao->getFields() as $fieldsDescriptor) { |
199 | 199 | foreach (array_values($fieldsDescriptor) as $fieldDescriptor) { |
200 | 200 | $fieldNames[] = $fieldDescriptor['name']; |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | $zohoDao = new $daoFullClassName($this->zohoClient); |
219 | 219 | //To have more module which is use time of modification (createdTime or lastActivityTime). |
220 | 220 | //use an array of Excluded Dao by full namespace |
221 | - if (($this->excludedZohoDao && in_array(get_class($zohoDao),$this->excludedZohoDao)) || !in_array('createdTime', $this->getListFieldName($zohoDao))) { |
|
221 | + if (($this->excludedZohoDao && in_array(get_class($zohoDao), $this->excludedZohoDao)) || !in_array('createdTime', $this->getListFieldName($zohoDao))) { |
|
222 | 222 | continue; |
223 | 223 | } |
224 | 224 | $this->zohoDaos [] = $zohoDao; |