Completed
Push — 3.2 ( 8c2d5f...e78c57 )
by
unknown
08:28 queued 06:51
created
src/Log/ZohoSyncSQLLogger.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $query = null;
58 58
         if ($params && $this->authorizedSQLWithParams) {
59 59
             $this->logger->debug($sql.' -- Params : {params} - Types : {types}', ['params' => json_encode($params), 'types' => json_encode($types)]);
60
-        } elseif($this->authorizedSQLWithoutParams) {
60
+        } elseif ($this->authorizedSQLWithoutParams) {
61 61
             $this->logger->debug($sql);
62 62
         }
63 63
     }
Please login to merge, or discard this patch.
src/ZohoDatabasePusher.php 3 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -314,7 +314,6 @@
 block discarded – undo
314 314
      * Insert data to bean in order to update zoho records.
315 315
      *
316 316
      * @param ZohoBeanInterface $zohoBean
317
-     * @param array $fieldsMatching
318 317
      * @param type $columnName
319 318
      * @param type $valueDb
320 319
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Wabel\Zoho\CRM\AbstractZohoDao;
9 9
 use Wabel\Zoho\CRM\Service\EntitiesGeneratorService;
10 10
 use Wabel\Zoho\CRM\ZohoBeanInterface;
11
-use zcrmsdk\crm\api\response\EntityResponse;
12 11
 
13 12
 /**
14 13
  * Description of ZohoDatabasePusher.
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
@@ -349,10 +349,10 @@  discard block
 block discarded – undo
349 349
                 $value = \DateTime::createFromFormat('Y-m-d H:i:s', $value) ?: null;
350 350
                 break;
351 351
             case 'boolean' :
352
-                $value = (bool)$value;
352
+                $value = (bool) $value;
353 353
                 break;
354 354
             case 'percent' :
355
-                $value = (int)$value;
355
+                $value = (int) $value;
356 356
                 break;
357 357
             case 'double' :
358 358
                 $value = number_format($value, 2);
Please login to merge, or discard this patch.
src/ZohoDatabaseCopier.php 1 patch
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
     {
73 73
         $users = $this->zohoUserService->getUsers();
74 74
         $tableName = 'users';
75
-        $this->logger->info('Fetched ' . count($users) . ' records for table ' . $tableName);
75
+        $this->logger->info('Fetched '.count($users).' records for table '.$tableName);
76 76
 
77 77
         $table = $this->connection->getSchemaManager()->createSchema()->getTable($tableName);
78 78
 
79
-        $select = $this->connection->prepare('SELECT * FROM ' . $tableName . ' WHERE id = :id');
79
+        $select = $this->connection->prepare('SELECT * FROM '.$tableName.' WHERE id = :id');
80 80
 
81 81
         $this->connection->beginTransaction();
82 82
         foreach ($users as $user) {
@@ -157,10 +157,10 @@  discard block
 block discarded – undo
157 157
                     $lastActivityTime = new \DateTime($modifiedSince);
158 158
                 } else {
159 159
                     if ($tableDetail->hasColumn('modifiedTime')) {
160
-                        $lastActivityTime = $this->connection->fetchColumn('SELECT MAX(modifiedTime) FROM ' . $tableName);
160
+                        $lastActivityTime = $this->connection->fetchColumn('SELECT MAX(modifiedTime) FROM '.$tableName);
161 161
                     }
162 162
                     if (!$lastActivityTime && $tableDetail->hasColumn('createdTime')) {
163
-                        $lastActivityTime = $this->connection->fetchColumn('SELECT MAX(createdTime) FROM ' . $tableName);
163
+                        $lastActivityTime = $this->connection->fetchColumn('SELECT MAX(createdTime) FROM '.$tableName);
164 164
                     }
165 165
 
166 166
                     if ($lastActivityTime !== null) {
@@ -179,21 +179,21 @@  discard block
 block discarded – undo
179 179
                 $this->logger->notice(sprintf('Fetching the records to insert/update for module %s...', $dao->getPluralModuleName()));
180 180
                 $records = $dao->getRecords(null, null, null, $lastActivityTime);
181 181
                 $totalRecords = count($records);
182
-                $this->logger->debug($totalRecords . ' records fetched.');
182
+                $this->logger->debug($totalRecords.' records fetched.');
183 183
                 $this->logger->notice(sprintf('Fetching the records to delete for module %s...', $dao->getPluralModuleName()));
184 184
                 $deletedRecords = $dao->getDeletedRecordIds($lastActivityTime);
185 185
                 $totalRecordsDeleted = count($deletedRecords);
186
-                $this->logger->debug($totalRecordsDeleted . ' records fetched.');
186
+                $this->logger->debug($totalRecordsDeleted.' records fetched.');
187 187
             } else {
188 188
                 $this->logger->info(sprintf('Full copy started for module %s', $dao->getPluralModuleName()));
189 189
                 $this->logger->notice(sprintf('Fetching the records to insert/update for module ...%s', $dao->getPluralModuleName()));
190 190
                 $records = $dao->getRecords();
191 191
                 $totalRecords = count($records);
192
-                $this->logger->debug($totalRecords . ' records fetched.');
192
+                $this->logger->debug($totalRecords.' records fetched.');
193 193
                 $deletedRecords = [];
194 194
             }
195 195
         } catch (ZCRMException $exception) {
196
-            $this->logger->error('Error when getting records for module ' . $dao->getPluralModuleName() . ': ' . $exception->getMessage(), [
196
+            $this->logger->error('Error when getting records for module '.$dao->getPluralModuleName().': '.$exception->getMessage(), [
197 197
                 'exception' => $exception
198 198
             ]);
199 199
             if ($throwErrors) {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 
206 206
         $table = $this->connection->getSchemaManager()->createSchema()->getTable($tableName);
207 207
 
208
-        $select = $this->connection->prepare('SELECT * FROM ' . $tableName . ' WHERE id = :id');
208
+        $select = $this->connection->prepare('SELECT * FROM '.$tableName.' WHERE id = :id');
209 209
 
210 210
         $this->connection->beginTransaction();
211 211
 
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
         }
276 276
 
277 277
         $this->logger->info(sprintf('Deleting %d records from table %s...', $totalRecordsDeleted, $tableName));
278
-        $sqlStatementUid = 'select uid from ' . $this->connection->quoteIdentifier($tableName) . ' where id = :id';
278
+        $sqlStatementUid = 'select uid from '.$this->connection->quoteIdentifier($tableName).' where id = :id';
279 279
         $processedRecords = 0;
280 280
         $logOffset = $totalRecordsDeleted >= 500 ? 100 : 50;
281 281
         foreach ($deletedRecords as $deletedRecord) {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         $table = $this->connection->getSchemaManager()->createSchema()->getTable($tableName);
316 316
         $apiModuleName = $dao->getPluralModuleName();
317 317
 
318
-        $this->logger->notice('Starting bulk fetch for module ' . $apiModuleName . '...');
318
+        $this->logger->notice('Starting bulk fetch for module '.$apiModuleName.'...');
319 319
 
320 320
         $zohoClient = new ZohoClient([
321 321
             'client_id' => ZOHO_CRM_CLIENT_ID,
@@ -334,11 +334,11 @@  discard block
 block discarded – undo
334 334
         $page = 1;
335 335
         while (true) {
336 336
             // Step 1: Create a bulk read job
337
-            $this->logger->info('Creating read job for module ' . $apiModuleName . ' and page ' . $page . '...');
338
-            $response = $client->request('POST', 'https://' . (ZOHO_CRM_SANDBOX === 'true' ? 'sandbox' : 'www') . '.zohoapis.com/crm/bulk/v2/read', [
337
+            $this->logger->info('Creating read job for module '.$apiModuleName.' and page '.$page.'...');
338
+            $response = $client->request('POST', 'https://'.(ZOHO_CRM_SANDBOX === 'true' ? 'sandbox' : 'www').'.zohoapis.com/crm/bulk/v2/read', [
339 339
                 'http_errors' => false,
340 340
                 'headers' => [
341
-                    'Authorization' => 'Zoho-oauthtoken ' . $oauthToken
341
+                    'Authorization' => 'Zoho-oauthtoken '.$oauthToken
342 342
                 ],
343 343
                 'json' => [
344 344
                     'query' => [
@@ -356,23 +356,23 @@  discard block
 block discarded – undo
356 356
 
357 357
                 // We don't care about the job status right now, it will be checked later
358 358
             } else {
359
-                $this->logger->error('Cannot create bulk read query for module ' . $apiModuleName . ': status: ' . $response->getStatusCode() . '. Status: ' . $response->getBody()->getContents());
359
+                $this->logger->error('Cannot create bulk read query for module '.$apiModuleName.': status: '.$response->getStatusCode().'. Status: '.$response->getBody()->getContents());
360 360
                 break;
361 361
             }
362 362
 
363 363
             if ($jobId === null) {
364
-                $this->logger->error('JobID cannot be null. json:' . $resultStr);
364
+                $this->logger->error('JobID cannot be null. json:'.$resultStr);
365 365
                 break;
366 366
             }
367 367
 
368 368
             // Step 2: Check job status
369 369
             $jobDetails = null;
370 370
             while (true) {
371
-                $this->logger->info('Checking job ' . $jobId . ' status for module ' . $apiModuleName . ' and page ' . $page . '...');
372
-                $response = $client->request('GET', 'https://' . (ZOHO_CRM_SANDBOX === 'true' ? 'sandbox' : 'www') . '.zohoapis.com/crm/bulk/v2/read/' . $jobId, [
371
+                $this->logger->info('Checking job '.$jobId.' status for module '.$apiModuleName.' and page '.$page.'...');
372
+                $response = $client->request('GET', 'https://'.(ZOHO_CRM_SANDBOX === 'true' ? 'sandbox' : 'www').'.zohoapis.com/crm/bulk/v2/read/'.$jobId, [
373 373
                     'http_errors' => false,
374 374
                     'headers' => [
375
-                        'Authorization' => 'Zoho-oauthtoken ' . $oauthToken
375
+                        'Authorization' => 'Zoho-oauthtoken '.$oauthToken
376 376
                     ]
377 377
                 ]);
378 378
                 if ($response->getStatusCode() >= 200 && $response->getStatusCode() < 300) {
@@ -390,15 +390,15 @@  discard block
 block discarded – undo
390 390
                             $jobDetails = $json;
391 391
                             break;
392 392
                         } else {
393
-                            $this->logger->info('Unsupported job status: ' . $resultStr);
393
+                            $this->logger->info('Unsupported job status: '.$resultStr);
394 394
                             break;
395 395
                         }
396 396
                     } else {
397
-                        $this->logger->error('Unsupported response: ' . $resultStr);
397
+                        $this->logger->error('Unsupported response: '.$resultStr);
398 398
                         break;
399 399
                     }
400 400
                 } else {
401
-                    $this->logger->error('Cannot get bulk job status query for module ' . $apiModuleName . ': status: ' . $response->getStatusCode() . '. Status: ' . $response->getBody()->getContents());
401
+                    $this->logger->error('Cannot get bulk job status query for module '.$apiModuleName.': status: '.$response->getStatusCode().'. Status: '.$response->getBody()->getContents());
402 402
                     break;
403 403
                 }
404 404
                 sleep(15);
@@ -406,31 +406,31 @@  discard block
 block discarded – undo
406 406
 
407 407
             // Step 3: Download the result
408 408
             if ($jobDetails === null) {
409
-                $this->logger->error('JobDetails cannot be empty. json:' . $resultStr);
409
+                $this->logger->error('JobDetails cannot be empty. json:'.$resultStr);
410 410
                 break;
411 411
             }
412 412
             $this->logger->debug(json_encode($jobDetails));
413
-            $this->logger->info('Downloading zip file for module ' . $apiModuleName . ' and page ' . $page . '...');
414
-            $jobZipFile = '/tmp/job_' . $dao->getZCRMModule()->getAPIName() . '_' . $jobDetails['data'][0]['id'] . '.zip';
413
+            $this->logger->info('Downloading zip file for module '.$apiModuleName.' and page '.$page.'...');
414
+            $jobZipFile = '/tmp/job_'.$dao->getZCRMModule()->getAPIName().'_'.$jobDetails['data'][0]['id'].'.zip';
415 415
             $jobCsvPath = '/tmp/job_extract';
416
-            $jobCsvFile = '/tmp/job_extract/' . $jobDetails['data'][0]['id'] . '.csv';
416
+            $jobCsvFile = '/tmp/job_extract/'.$jobDetails['data'][0]['id'].'.csv';
417 417
             $canProcessCsv = false;
418 418
 
419
-            $response = $client->request('GET', 'https://' . (ZOHO_CRM_SANDBOX === 'true' ? 'sandbox' : 'www') . '.zohoapis.com/crm/bulk/v2/read/' . $jobId . '/result', [
419
+            $response = $client->request('GET', 'https://'.(ZOHO_CRM_SANDBOX === 'true' ? 'sandbox' : 'www').'.zohoapis.com/crm/bulk/v2/read/'.$jobId.'/result', [
420 420
                 'http_errors' => false,
421 421
                 'headers' => [
422
-                    'Authorization' => 'Zoho-oauthtoken ' . $oauthToken
422
+                    'Authorization' => 'Zoho-oauthtoken '.$oauthToken
423 423
                 ],
424 424
                 'sink' => $jobZipFile
425 425
             ]);
426 426
             if ($response->getStatusCode() >= 200 && $response->getStatusCode() < 300) {
427
-                $this->logger->info('Extracting ' . $jobZipFile . ' file for module ' . $apiModuleName . ' and page ' . $page . '...');
427
+                $this->logger->info('Extracting '.$jobZipFile.' file for module '.$apiModuleName.' and page '.$page.'...');
428 428
                 $zip = new ZipArchive();
429 429
                 $res = $zip->open($jobZipFile);
430 430
                 if ($res === TRUE) {
431 431
                     $zip->extractTo($jobCsvPath);
432 432
                     $zip->close();
433
-                    $this->logger->info('File extracted in ' . $jobCsvFile);
433
+                    $this->logger->info('File extracted in '.$jobCsvFile);
434 434
                     $canProcessCsv = true;
435 435
                 } else {
436 436
                     switch ($res) {
@@ -462,11 +462,11 @@  discard block
 block discarded – undo
462 462
                             $zipErrorMessage = "Unknow (Code $res)";
463 463
                             break;
464 464
                     }
465
-                    $this->logger->error('Error when extracting zip file: ' . $zipErrorMessage);
465
+                    $this->logger->error('Error when extracting zip file: '.$zipErrorMessage);
466 466
                     break;
467 467
                 }
468 468
             } else {
469
-                $this->logger->error('Cannot download results for module ' . $apiModuleName . ': status: ' . $response->getStatusCode() . '. Status: ' . $response->getBody()->getContents());
469
+                $this->logger->error('Cannot download results for module '.$apiModuleName.': status: '.$response->getStatusCode().'. Status: '.$response->getBody()->getContents());
470 470
                 break;
471 471
             }
472 472
 
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
             $this->logger->info('Saving records to db...');
488 488
             $nbRecords = $jobDetails['data'][0]['result']['count'];
489 489
             $whenToLog = ceil($nbRecords / 100);
490
-            $this->logger->info($nbRecords . ' records to save');
490
+            $this->logger->info($nbRecords.' records to save');
491 491
             $nbSaved = 0;
492 492
             $handle = fopen($jobCsvFile, 'r');
493 493
             $fields = [];
@@ -505,30 +505,30 @@  discard block
 block discarded – undo
505 505
                             $recordDataToInsert[$decodedColumnName] = $value === '' ? null : $value;
506 506
                         } else {
507 507
                             if ($columnName === 'Owner' || $columnName === 'Created_By' || $columnName === 'Modified_By') {
508
-                                $recordDataToInsert[$decodedColumnName . '_OwnerID'] = $value === '' ? null : $value;
509
-                                $recordDataToInsert[$decodedColumnName . '_OwnerName'] = $users[$value] ?? null;
510
-                            } else if ($table->hasColumn($decodedColumnName . '_ID')) {
511
-                                $recordDataToInsert[$decodedColumnName . '_ID'] = $value === '' ? null : $value;
508
+                                $recordDataToInsert[$decodedColumnName.'_OwnerID'] = $value === '' ? null : $value;
509
+                                $recordDataToInsert[$decodedColumnName.'_OwnerName'] = $users[$value] ?? null;
510
+                            } else if ($table->hasColumn($decodedColumnName.'_ID')) {
511
+                                $recordDataToInsert[$decodedColumnName.'_ID'] = $value === '' ? null : $value;
512 512
                             }
513 513
                         }
514 514
                     }
515 515
                     $this->connection->insert($tableName, $recordDataToInsert);
516 516
                     ++$nbSaved;
517 517
                     if (($nbSaved % $whenToLog) === 0) {
518
-                        $this->logger->info($nbSaved . '/' . $nbRecords . ' records processed');
518
+                        $this->logger->info($nbSaved.'/'.$nbRecords.' records processed');
519 519
                     }
520 520
                 }
521
-                $this->logger->info($nbSaved . ' records saved for module ' . $apiModuleName . ' and page ' . $page);
521
+                $this->logger->info($nbSaved.' records saved for module '.$apiModuleName.' and page '.$page);
522 522
                 fclose($handle);
523 523
             }
524 524
 
525 525
             // Step 5: Check if there is more results
526 526
             $hasMoreRecords = $jobDetails['data'][0]['result']['more_records'];
527 527
             if (!$hasMoreRecords) {
528
-                $this->logger->info('No more records for the module ' . $apiModuleName);
528
+                $this->logger->info('No more records for the module '.$apiModuleName);
529 529
                 break;
530 530
             }
531
-            $this->logger->info('More records to fetch for the module ' . $apiModuleName);
531
+            $this->logger->info('More records to fetch for the module '.$apiModuleName);
532 532
             ++$page;
533 533
         }
534 534
     }
Please login to merge, or discard this patch.
src/LocalChangesTracker.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     public function createUuidInsertTrigger(Table $table)
96 96
     {
97 97
         $triggerName = sprintf('TRG_%s_SETUUIDBEFOREINSERT', $table->getName());
98
-        $this->logger->info('Creating ' . $triggerName . ' trigger for table ' . $table->getName() . '...');
98
+        $this->logger->info('Creating '.$triggerName.' trigger for table '.$table->getName().'...');
99 99
 
100 100
         //Fix - temporary MySQL 5.7 strict mode
101 101
         $sql = sprintf(
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     public function createInsertTrigger(Table $table)
125 125
     {
126 126
         $triggerName = sprintf('TRG_%s_ONINSERT', $table->getName());
127
-        $this->logger->info('Creating ' . $triggerName . ' trigger for table ' . $table->getName() . '...');
127
+        $this->logger->info('Creating '.$triggerName.' trigger for table '.$table->getName().'...');
128 128
 
129 129
         $tableNameQuoted = $this->connection->quote($table->getName());
130 130
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     public function createDeleteTrigger(Table $table)
152 152
     {
153 153
         $triggerName = sprintf('TRG_%s_ONDELETE', $table->getName());
154
-        $this->logger->info('Creating ' . $triggerName . ' trigger for table ' . $table->getName() . '...');
154
+        $this->logger->info('Creating '.$triggerName.' trigger for table '.$table->getName().'...');
155 155
 
156 156
         $tableNameQuoted = $this->connection->quote($table->getName());
157 157
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     public function createUpdateTrigger(Table $table)
179 179
     {
180 180
         $triggerName = sprintf('TRG_%s_ONUPDATE', $table->getName());
181
-        $this->logger->info('Creating ' . $triggerName . ' trigger for table ' . $table->getName() . '...');
181
+        $this->logger->info('Creating '.$triggerName.' trigger for table '.$table->getName().'...');
182 182
 
183 183
         $innerCode = '';
184 184
 
Please login to merge, or discard this patch.
src/ZohoDatabaseModelSync.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         }
87 87
 
88 88
         $tableName = ZohoDatabaseHelper::getTableName($dao, $this->prefix);
89
-        $this->logger->notice('Synchronizing DB Model for ' . $tableName . '...');
89
+        $this->logger->notice('Synchronizing DB Model for '.$tableName.'...');
90 90
 
91 91
         $schema = new Schema();
92 92
         $table = $schema->createTable($tableName);
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                     continue 2;
178 178
                     break;
179 179
                 default:
180
-                    throw new \RuntimeException('Unknown type "' . $field->getType() . '"');
180
+                    throw new \RuntimeException('Unknown type "'.$field->getType().'"');
181 181
             }
182 182
 
183 183
             // For MySQL, the maximum row size is 65535 bytes.
Please login to merge, or discard this patch.
src/ZohoSyncDatabaseCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             if ($input->getOption('log-path') && $input->getOption('clear-logs')) {
142 142
                 $this->logger->notice('Clearing logs...');
143 143
                 $path = $input->getOption('log-path');
144
-                $logFile = $path . '/ZCRMClientLibrary.log';
144
+                $logFile = $path.'/ZCRMClientLibrary.log';
145 145
                 if (file_exists($logFile)) {
146 146
                     if (is_writable($logFile)) {
147 147
                         if (file_put_contents($logFile, '') === false) {
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
             if ($input->getOption('log-path') && $input->getOption('dump-logs')) {
186 186
                 $this->logger->info('Dumping logs...');
187 187
                 $path = $input->getOption('log-path');
188
-                $logFile = $path . '/ZCRMClientLibrary.log';
188
+                $logFile = $path.'/ZCRMClientLibrary.log';
189 189
                 if (file_exists($logFile)) {
190 190
                     if (is_readable($logFile)) {
191 191
                         $this->logger->info(file_get_contents($logFile));
Please login to merge, or discard this patch.