Passed
Push — main ( 2840e2...f5469f )
by Gaetano
07:36
created
Core/MigrationService.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
         }
315 315
 
316 316
         if ($migrationDefinition->status == MigrationDefinition::STATUS_INVALID) {
317
-            throw new MigrationBundleException("Can not execute " . $this->getEntityName($migrationDefinition). " '{$migrationDefinition->name}': {$migrationDefinition->parsingError}");
317
+            throw new MigrationBundleException("Can not execute " . $this->getEntityName($migrationDefinition) . " '{$migrationDefinition->name}': {$migrationDefinition->parsingError}");
318 318
         }
319 319
 
320 320
         // BC: handling of legacy method call signature
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 
379 379
         try {
380 380
 
381
-            $i = $stepOffset+1;
381
+            $i = $stepOffset + 1;
382 382
             $finalStatus = Migration::STATUS_DONE;
383 383
             $finalMessage = null;
384 384
 
@@ -526,12 +526,12 @@  discard block
 block discarded – undo
526 526
         }
527 527
 
528 528
         if ($migration->status != Migration::STATUS_SUSPENDED) {
529
-            throw new MigrationBundleException("Can not resume ".$this->getEntityName($migration)." '{$migration->name}': it is not in suspended status");
529
+            throw new MigrationBundleException("Can not resume " . $this->getEntityName($migration) . " '{$migration->name}': it is not in suspended status");
530 530
         }
531 531
 
532 532
         $migrationDefinitions = $this->getMigrationsDefinitions(array($migration->path));
533 533
         if (!count($migrationDefinitions)) {
534
-            throw new MigrationBundleException("Can not resume ".$this->getEntityName($migration)." '{$migration->name}': its definition is missing");
534
+            throw new MigrationBundleException("Can not resume " . $this->getEntityName($migration) . " '{$migration->name}': its definition is missing");
535 535
         }
536 536
 
537 537
         $defs = $migrationDefinitions->getArrayCopy();
@@ -539,17 +539,17 @@  discard block
 block discarded – undo
539 539
 
540 540
         $migrationDefinition = $this->parseMigrationDefinition($migrationDefinition);
541 541
         if ($migrationDefinition->status == MigrationDefinition::STATUS_INVALID) {
542
-            throw new MigrationBundleException("Can not resume ".$this->getEntityName($migration)." '{$migration->name}': {$migrationDefinition->parsingError}");
542
+            throw new MigrationBundleException("Can not resume " . $this->getEntityName($migration) . " '{$migration->name}': {$migrationDefinition->parsingError}");
543 543
         }
544 544
 
545 545
         // restore context
546 546
         $this->contextHandler->restoreCurrentContext($migration->name);
547 547
         if (!isset($this->migrationContext[$migration->name])) {
548
-            throw new MigrationBundleException("Can not resume ".$this->getEntityName($migration)." '{$migration->name}': the stored context is missing");
548
+            throw new MigrationBundleException("Can not resume " . $this->getEntityName($migration) . " '{$migration->name}': the stored context is missing");
549 549
         }
550 550
         $restoredContext = $this->migrationContext[$migration->name];
551 551
         if (!is_array($restoredContext) || !isset($restoredContext['context']) || !isset($restoredContext['step'])) {
552
-            throw new MigrationBundleException("Can not resume ".$this->getEntityName($migration)." '{$migration->name}': the stored context is invalid");
552
+            throw new MigrationBundleException("Can not resume " . $this->getEntityName($migration) . " '{$migration->name}': the stored context is invalid");
553 553
         }
554 554
 
555 555
         // update migration status
Please login to merge, or discard this patch.
Core/Executor/MigrationDefinitionExecutor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         /// @todo can we could have the included migration's steps be printed as 1.1, 1.2 etc...
86 86
         /// @todo we could return the result of the included migration's last step
87
-        foreach($migrationDefinitions as $migrationDefinition) {
87
+        foreach ($migrationDefinitions as $migrationDefinition) {
88 88
             $this->migrationService->executeMigration($migrationDefinition, $context);
89 89
         }
90 90
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
         foreach ($dsl['references'] as $key => $reference) {
212 212
             // BC
213
-            if (is_array($reference) && isset($reference['json_path']) && !isset($reference['attribute'] )) {
213
+            if (is_array($reference) && isset($reference['json_path']) && !isset($reference['attribute'])) {
214 214
                 $reference['attribute'] = $reference['json_path'];
215 215
             }
216 216
             $reference = $this->parseReferenceDefinition($key, $reference);
Please login to merge, or discard this patch.