@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | { |
68 | 68 | $tableName = ZohoDatabaseHelper::getTableName($zohoDao, $this->prefix); |
69 | 69 | if ($update) { |
70 | - return (int)$this->connection->executeQuery('SELECT COUNT(DISTINCT uid) AS nb FROM `local_update` WHERE table_name LIKE :tableName AND error IS NULL', ['tableName' => $tableName])->fetchColumn(); |
|
70 | + return (int) $this->connection->executeQuery('SELECT COUNT(DISTINCT uid) AS nb FROM `local_update` WHERE table_name LIKE :tableName AND error IS NULL', ['tableName' => $tableName])->fetchColumn(); |
|
71 | 71 | } |
72 | - return (int)$this->connection->executeQuery('SELECT COUNT(uid) AS nb FROM `local_insert` WHERE table_name LIKE :tableName AND error IS NULL', ['tableName' => $tableName])->fetchColumn(); |
|
72 | + return (int) $this->connection->executeQuery('SELECT COUNT(uid) AS nb FROM `local_insert` WHERE table_name LIKE :tableName AND error IS NULL', ['tableName' => $tableName])->fetchColumn(); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $localTable = $update ? 'local_update' : 'local_insert'; |
83 | 83 | $tableName = ZohoDatabaseHelper::getTableName($zohoDao, $this->prefix); |
84 | 84 | $countToPush = $this->countElementInTable($zohoDao, $update); |
85 | - $this->logger->notice($countToPush . ' records to ' . ($update ? 'update' : 'insert') . ' into Zoho for module ' . $zohoDao->getPluralModuleName()); |
|
85 | + $this->logger->notice($countToPush.' records to '.($update ? 'update' : 'insert').' into Zoho for module '.$zohoDao->getPluralModuleName()); |
|
86 | 86 | if ($countToPush) { |
87 | 87 | do { |
88 | 88 | $rowsDeleted = []; |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | ] |
256 | 256 | ); |
257 | 257 | } else { |
258 | - $countResult = (int)$this->connection->fetchColumn('select count(id) from ' . $tableName . ' where id = :id', ['id' => $zohoBean->getZohoId()]); |
|
258 | + $countResult = (int) $this->connection->fetchColumn('select count(id) from '.$tableName.' where id = :id', ['id' => $zohoBean->getZohoId()]); |
|
259 | 259 | //If the sent data were duplicates Zoho can merged so we need to check if the Zoho ID already exist. |
260 | 260 | if ($countResult === 0) { |
261 | 261 | // ID not exist we can update the new row with the Zoho ID |
@@ -361,13 +361,13 @@ discard block |
||
361 | 361 | $value = \DateTime::createFromFormat('Y-m-d H:i:s', $value) ?: null; |
362 | 362 | break; |
363 | 363 | case 'boolean' : |
364 | - $value = (bool)$value; |
|
364 | + $value = (bool) $value; |
|
365 | 365 | break; |
366 | 366 | case 'percent' : |
367 | - $value = (int)$value; |
|
367 | + $value = (int) $value; |
|
368 | 368 | break; |
369 | 369 | case 'double' : |
370 | - $value = (float)$value; |
|
370 | + $value = (float) $value; |
|
371 | 371 | break; |
372 | 372 | case 'multiselectlookup': |
373 | 373 | case 'multiuserlookup': |