@@ -157,7 +157,7 @@ |
||
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | if ($this->output && $this->output->isVeryVerbose()) { |
| 160 | - $out .= sprintf(". <info>Time taken: %.3f secs, memory delta: %d bytes</info>", $stepTime, $stepMemory); |
|
| 160 | + $out .= sprintf(". <info>Time taken: %.3f secs, memory delta: %d bytes</info>", $stepTime, $stepMemory); |
|
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | $this->echoMessage($out); |
@@ -599,8 +599,9 @@ |
||
| 599 | 599 | */ |
| 600 | 600 | public function getCurrentContext($migrationName) |
| 601 | 601 | { |
| 602 | - if (!isset($this->migrationContext[$migrationName])) |
|
| 603 | - return null; |
|
| 602 | + if (!isset($this->migrationContext[$migrationName])) { |
|
| 603 | + return null; |
|
| 604 | + } |
|
| 604 | 605 | $context = $this->migrationContext[$migrationName]; |
| 605 | 606 | // avoid attempting to store the current outputInterface when saving the context |
| 606 | 607 | if (isset($context['output'])) { |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | throw new \Exception("Invalid step definition: file '$fileName' for saving references already exists"); |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | - if (! $this->referenceResolver instanceof EnumerableReferenceResolverInterface) { |
|
| 158 | + if (!$this->referenceResolver instanceof EnumerableReferenceResolverInterface) { |
|
| 159 | 159 | throw new \Exception("Can not save references as resolver is not enumerable"); |
| 160 | 160 | } |
| 161 | 161 | |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | $value = $this->referenceResolver->resolveReference($dsl['identifier']); |
| 204 | 204 | VarDumper::dump($value); |
| 205 | 205 | if (isset($context['output']) && $context['output'] instanceof OutputInterface) { |
| 206 | - $context['output']->write(ob_get_contents(), false, OutputInterface::OUTPUT_RAW|OutputInterface::VERBOSITY_NORMAL); |
|
| 206 | + $context['output']->write(ob_get_contents(), false, OutputInterface::OUTPUT_RAW | OutputInterface::VERBOSITY_NORMAL); |
|
| 207 | 207 | ob_end_clean(); |
| 208 | 208 | } |
| 209 | 209 | return $value; |