@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | } |
151 | 151 | |
152 | 152 | // allow to generate migrations for many entities |
153 | - if (strpos($matchValue, ',') !== false ) { |
|
153 | + if (strpos($matchValue, ',') !== false) { |
|
154 | 154 | $matchValue = explode(',', $matchValue); |
155 | 155 | } |
156 | 156 | |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | { |
261 | 261 | $migrationService = $this->getMigrationService(); |
262 | 262 | $executors = $migrationService->listExecutors(); |
263 | - foreach($executors as $key => $name) { |
|
263 | + foreach ($executors as $key => $name) { |
|
264 | 264 | $executor = $migrationService->getExecutor($name); |
265 | 265 | if (!$executor instanceof MigrationGeneratorInterface) { |
266 | 266 | unset($executors[$key]); |
@@ -234,11 +234,11 @@ |
||
234 | 234 | if ($mode != 'delete') { |
235 | 235 | $names = array(); |
236 | 236 | $descriptions = array(); |
237 | - foreach($objectStateGroup->languageCodes as $languageCode) { |
|
238 | - $names[$languageCode] = $objectStateGroup->getName($languageCode); |
|
237 | + foreach ($objectStateGroup->languageCodes as $languageCode) { |
|
238 | + $names[$languageCode] = $objectStateGroup->getName($languageCode); |
|
239 | 239 | } |
240 | - foreach($objectStateGroup->languageCodes as $languageCode) { |
|
241 | - $descriptions[$languageCode] = $objectStateGroup->getDescription($languageCode); |
|
240 | + foreach ($objectStateGroup->languageCodes as $languageCode) { |
|
241 | + $descriptions[$languageCode] = $objectStateGroup->getDescription($languageCode); |
|
242 | 242 | } |
243 | 243 | $groupData = array_merge( |
244 | 244 | $groupData, |
@@ -248,11 +248,11 @@ |
||
248 | 248 | if ($mode != 'delete') { |
249 | 249 | $names = array(); |
250 | 250 | $descriptions = array(); |
251 | - foreach($objectState->languageCodes as $languageCode) { |
|
252 | - $names[$languageCode] = $objectState->getName($languageCode); |
|
251 | + foreach ($objectState->languageCodes as $languageCode) { |
|
252 | + $names[$languageCode] = $objectState->getName($languageCode); |
|
253 | 253 | } |
254 | - foreach($objectState->languageCodes as $languageCode) { |
|
255 | - $descriptions[$languageCode] = $objectState->getDescription($languageCode); |
|
254 | + foreach ($objectState->languageCodes as $languageCode) { |
|
255 | + $descriptions[$languageCode] = $objectState->getDescription($languageCode); |
|
256 | 256 | } |
257 | 257 | $groupData = array_merge( |
258 | 258 | $groupData, |
@@ -11,7 +11,7 @@ |
||
11 | 11 | protected $ioRootDir; |
12 | 12 | protected $ioDecorator; |
13 | 13 | |
14 | - public function __construct($ioRootDir, UrlDecorator $ioDecorator=null) |
|
14 | + public function __construct($ioRootDir, UrlDecorator $ioDecorator = null) |
|
15 | 15 | { |
16 | 16 | $this->ioRootDir = $ioRootDir; |
17 | 17 | $this->ioDecorator = $ioDecorator; |
@@ -98,7 +98,7 @@ |
||
98 | 98 | $refs = array(); |
99 | 99 | |
100 | 100 | foreach ($this->resolvers as $resolver) { |
101 | - if (! $resolver instanceof EnumerableReferenceResolverInterface) { |
|
101 | + if (!$resolver instanceof EnumerableReferenceResolverInterface) { |
|
102 | 102 | throw new \Exception("Could not enumerate references because of chained resolver of type: " . get_class($resolver)); |
103 | 103 | } |
104 | 104 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | switch ($key) { |
83 | 83 | case self::MATCH_AND: |
84 | - foreach($values as $subCriterion) { |
|
84 | + foreach ($values as $subCriterion) { |
|
85 | 85 | $value = $this->match($subCriterion); |
86 | 86 | if (!reset($value)) { |
87 | 87 | return $value; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return array(true); |
91 | 91 | |
92 | 92 | case self::MATCH_OR: |
93 | - foreach($values as $subCriterion) { |
|
93 | + foreach ($values as $subCriterion) { |
|
94 | 94 | $value = $this->match($subCriterion); |
95 | 95 | if (reset($value)) { |
96 | 96 | return $value; |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | public function storeCurrentContext($migrationName) |
36 | 36 | { |
37 | 37 | $context = array(); |
38 | - foreach($this->providers as $label => $provider) { |
|
38 | + foreach ($this->providers as $label => $provider) { |
|
39 | 39 | $context[$label] = $provider->getCurrentContext($migrationName); |
40 | 40 | } |
41 | 41 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | if (!is_array($context)) { |
53 | 53 | throw new \Exception("No execution context found associated with migration '$migrationName'"); |
54 | 54 | } |
55 | - foreach($this->providers as $label => $provider) { |
|
55 | + foreach ($this->providers as $label => $provider) { |
|
56 | 56 | if (isset($context[$label])) { |
57 | 57 | $provider->restoreContext($migrationName, $context[$label]); |
58 | 58 | } |
@@ -95,7 +95,7 @@ |
||
95 | 95 | |
96 | 96 | $output->writeln('<info>Migration: ' . $migration->name . '</info>'); |
97 | 97 | $output->writeln('Status: ' . $status); |
98 | - $output->writeln('Executed on: <info>' . ($migration->executionDate != null ? date("Y-m-d H:i:s", $migration->executionDate) : '--'). '</info>'); |
|
98 | + $output->writeln('Executed on: <info>' . ($migration->executionDate != null ? date("Y-m-d H:i:s", $migration->executionDate) : '--') . '</info>'); |
|
99 | 99 | $output->writeln('Execution notes: <info>' . $migration->executionError . '</info>'); |
100 | 100 | |
101 | 101 | if ($migration->status == Migration::STATUS_SUSPENDED) { |
@@ -67,7 +67,7 @@ |
||
67 | 67 | $body = isset($dsl['body']) ? $this->resolveReferencesInText($dsl['body']) : null; |
68 | 68 | |
69 | 69 | if (isset($dsl['client'])) { |
70 | - $client = $this->container->get('httplug.client.'.$dsl['client']); |
|
70 | + $client = $this->container->get('httplug.client.' . $dsl['client']); |
|
71 | 71 | } else { |
72 | 72 | $client = $this->container->get('httplug.client'); |
73 | 73 | } |