@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | |
133 | 133 | if ($input->getOption('set-reference') && !$input->getOption('separate-process')) { |
134 | 134 | $refResolver = $this->getContainer()->get('ez_migration_bundle.reference_resolver.customreference'); |
135 | - foreach($input->getOption('set-reference') as $refSpec) { |
|
135 | + foreach ($input->getOption('set-reference') as $refSpec) { |
|
136 | 136 | $ref = explode(':', $refSpec, 2); |
137 | 137 | if (count($ref) < 2 || $ref[0] === '') { |
138 | 138 | throw new \Exception("Invalid reference specification: '$refSpec'"); |
@@ -232,9 +232,9 @@ discard block |
||
232 | 232 | $time = microtime(true) - $start; |
233 | 233 | if ($input->getOption('separate-process')) { |
234 | 234 | // in case of using subprocesses, we can not measure max memory used |
235 | - $this->writeln("<info>Time taken: ".sprintf('%.3f', $time)." secs</info>"); |
|
235 | + $this->writeln("<info>Time taken: " . sprintf('%.3f', $time) . " secs</info>"); |
|
236 | 236 | } else { |
237 | - $this->writeln("<info>Time taken: ".sprintf('%.3f', $time)." secs, memory: ".sprintf('%.2f', (memory_get_peak_usage(true) / 1000000)). ' MB</info>'); |
|
237 | + $this->writeln("<info>Time taken: " . sprintf('%.3f', $time) . " secs, memory: " . sprintf('%.2f', (memory_get_peak_usage(true) / 1000000)) . ' MB</info>'); |
|
238 | 238 | } |
239 | 239 | |
240 | 240 | return $failed; |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | $builderArgs[] = '--no-debug'; |
467 | 467 | } |
468 | 468 | if ($input->getOption('siteaccess')) { |
469 | - $builderArgs[] = '--siteaccess='.$input->getOption('siteaccess'); |
|
469 | + $builderArgs[] = '--siteaccess=' . $input->getOption('siteaccess'); |
|
470 | 470 | } |
471 | 471 | switch ($this->verbosity) { |
472 | 472 | case OutputInterface::VERBOSITY_VERBOSE: |
@@ -498,7 +498,7 @@ discard block |
||
498 | 498 | $builderArgs[] = '--no-transactions'; |
499 | 499 | } |
500 | 500 | if ($input->getOption('set-reference')) { |
501 | - foreach($input->getOption('set-reference') as $refSpec) { |
|
501 | + foreach ($input->getOption('set-reference') as $refSpec) { |
|
502 | 502 | $builderArgs[] = '--set-reference=' . $refSpec; |
503 | 503 | } |
504 | 504 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | throw new \Exception("Invalid step definition: file '$fileName' for saving references already exists"); |
161 | 161 | } |
162 | 162 | |
163 | - if (! $this->referenceResolver instanceof EnumerableReferenceResolverInterface) { |
|
163 | + if (!$this->referenceResolver instanceof EnumerableReferenceResolverInterface) { |
|
164 | 164 | throw new \Exception("Can not save references as resolver is not enumerable"); |
165 | 165 | } |
166 | 166 | |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | $value = $this->dumpVar($this->referenceResolver->resolveReference($dsl['identifier'])); |
206 | 206 | |
207 | 207 | if (isset($context['output']) && $context['output'] instanceof OutputInterface) { |
208 | - $context['output']->write($label . $value, false, OutputInterface::OUTPUT_RAW|OutputInterface::VERBOSITY_NORMAL); |
|
208 | + $context['output']->write($label . $value, false, OutputInterface::OUTPUT_RAW | OutputInterface::VERBOSITY_NORMAL); |
|
209 | 209 | } else { |
210 | 210 | echo $label . $value; |
211 | 211 | } |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | |
228 | 228 | $dumper->dump( |
229 | 229 | $cloner->cloneVar($var), |
230 | - function ($line, $depth) use (&$output) { |
|
230 | + function($line, $depth) use (&$output) { |
|
231 | 231 | // A negative depth means "end of dump" |
232 | 232 | if ($depth >= 0) { |
233 | 233 | // Adds a two spaces indentation to the line |