@@ -91,7 +91,7 @@ |
||
| 91 | 91 | } |
| 92 | 92 | if (isset($dsl['attach'])) { |
| 93 | 93 | $paths = $this->resolveReferencesRecursively($dsl['attach']); |
| 94 | - foreach((array)$paths as $path) { |
|
| 94 | + foreach ((array)$paths as $path) { |
|
| 95 | 95 | // we use the same logic as for the image/file fields in content: look up file 1st relative to the migration |
| 96 | 96 | $attachment = dirname($context['path']) . '/' . $path; |
| 97 | 97 | if (!is_file($attachment)) { |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | throw new MigrationBundleException("Invalid step definition: file '$fileName' for saving references already exists"); |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | - if (! $this->referenceResolver instanceof EnumerableReferenceResolverInterface) { |
|
| 173 | + if (!$this->referenceResolver instanceof EnumerableReferenceResolverInterface) { |
|
| 174 | 174 | throw new MigrationBundleException("Can not save references as resolver is not enumerable"); |
| 175 | 175 | } |
| 176 | 176 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | $value = $this->dumpVar($this->resolveReference($dsl['identifier'])); |
| 216 | 216 | |
| 217 | 217 | if (isset($context['output']) && $context['output'] instanceof OutputInterface) { |
| 218 | - $context['output']->write($label . $value, false, OutputInterface::OUTPUT_RAW|OutputInterface::VERBOSITY_NORMAL); |
|
| 218 | + $context['output']->write($label . $value, false, OutputInterface::OUTPUT_RAW | OutputInterface::VERBOSITY_NORMAL); |
|
| 219 | 219 | } else { |
| 220 | 220 | echo $label . $value; |
| 221 | 221 | } |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | |
| 238 | 238 | $dumper->dump( |
| 239 | 239 | $cloner->cloneVar($var), |
| 240 | - function ($line, $depth) use (&$output) { |
|
| 240 | + function($line, $depth) use (&$output) { |
|
| 241 | 241 | // A negative depth means "end of dump" |
| 242 | 242 | if ($depth >= 0) { |
| 243 | 243 | // Adds a two spaces indentation to the line |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | $body = isset($dsl['body']) ? $this->resolveReferencesInText($dsl['body']) : null; |
| 77 | 77 | |
| 78 | 78 | if (isset($dsl['client'])) { |
| 79 | - $client = $this->container->get('httplug.client.'.$this->resolveReference($dsl['client'])); |
|
| 79 | + $client = $this->container->get('httplug.client.' . $this->resolveReference($dsl['client'])); |
|
| 80 | 80 | } else { |
| 81 | 81 | $client = $this->container->get('httplug.client'); |
| 82 | 82 | } |