@@ -226,7 +226,7 @@ |
||
| 226 | 226 | */ |
| 227 | 227 | protected function sortMigrationIndex(array &$index, $sortBy) |
| 228 | 228 | { |
| 229 | - switch($sortBy) { |
|
| 229 | + switch ($sortBy) { |
|
| 230 | 230 | case 'execution': |
| 231 | 231 | uasort($index, function($m1, $m2) { |
| 232 | 232 | if (isset($m1['migration']) && $m1['migration']->executionDate !== null) { |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $fieldValue = array($fieldValue); |
| 42 | 42 | } |
| 43 | 43 | if (!$refsResolved) { |
| 44 | - foreach($fieldValue as $key => $countryValue) { |
|
| 44 | + foreach ($fieldValue as $key => $countryValue) { |
|
| 45 | 45 | $fieldValue[$key] = $this->referenceResolver->resolveReference($countryValue); |
| 46 | 46 | } |
| 47 | 47 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | // BC |
| 48 | 48 | if (isset($step->dsl['references_type'])) { |
| 49 | - switch($step->dsl['references_type']) { |
|
| 49 | + switch ($step->dsl['references_type']) { |
|
| 50 | 50 | case 'array': |
| 51 | 51 | return (isset($step->dsl['references_allow_empty']) && $step->dsl['references_allow_empty'] == true); |
| 52 | 52 | case 'scalar': |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | // BC |
| 83 | 83 | if (isset($step->dsl['references_type'])) { |
| 84 | - switch($step->dsl['references_type']) { |
|
| 84 | + switch ($step->dsl['references_type']) { |
|
| 85 | 85 | case 'array': |
| 86 | 86 | return self::$RESULT_TYPE_MULTIPLE; |
| 87 | 87 | case 'scalar': |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | protected function hasNonScalarReferences($referencesDefinition) |
| 107 | 107 | { |
| 108 | - foreach($referencesDefinition as $referenceDefinition) { |
|
| 108 | + foreach ($referencesDefinition as $referenceDefinition) { |
|
| 109 | 109 | if (!$this->isScalarReference($referenceDefinition)) |
| 110 | 110 | { |
| 111 | 111 | return true; |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | foreach ($dsl['references'] as $reference) { |
| 168 | 168 | // BC |
| 169 | - if (isset($reference['json_path']) && !isset($reference['attribute'] )) { |
|
| 169 | + if (isset($reference['json_path']) && !isset($reference['attribute'])) { |
|
| 170 | 170 | $reference['attribute'] = $reference['json_path']; |
| 171 | 171 | } |
| 172 | 172 | |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | { |
| 196 | 196 | $migrationService = $this->migrationService; |
| 197 | 197 | $executors = $migrationService->listExecutors(); |
| 198 | - foreach($executors as $key => $name) { |
|
| 198 | + foreach ($executors as $key => $name) { |
|
| 199 | 199 | $executor = $migrationService->getExecutor($name); |
| 200 | 200 | if (!$executor instanceof MigrationGeneratorInterface) { |
| 201 | 201 | unset($executors[$key]); |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | |
| 225 | 225 | $multivalued = ($this->getResultsType($step) == self::$RESULT_TYPE_MULTIPLE); |
| 226 | 226 | |
| 227 | - if ($item instanceof AbstractCollection || is_array($item)) { |
|
| 227 | + if ($item instanceof AbstractCollection || is_array($item)) { |
|
| 228 | 228 | $items = $item; |
| 229 | 229 | } else { |
| 230 | 230 | $items = array($item); |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | { |
| 268 | 268 | // allow setting *some* refs even when we have 0 or N matches |
| 269 | 269 | foreach ($referencesDefinition as $key => $reference) { |
| 270 | - switch($reference['attribute']) { |
|
| 270 | + switch ($reference['attribute']) { |
|
| 271 | 271 | |
| 272 | 272 | case 'count': |
| 273 | 273 | $value = count($entity); |