Completed
Pull Request — master (#164)
by Damian
07:22
created
Core/Executor/ContentManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
                     $locations = $locationService->loadLocations($content->contentInfo);
521 521
                     if (count($locations) > 1) {
522 522
                         $otherParentLocations = array();
523
-                        foreach($locations as $otherLocation) {
523
+                        foreach ($locations as $otherLocation) {
524 524
                             if ($otherLocation->id != $location->id) {
525 525
                                 $otherParentLocations[] = $otherLocation->parentLocationId;
526 526
                             }
@@ -608,21 +608,21 @@  discard block
 block discarded – undo
608 608
                 $fieldIdentifier = key($field);
609 609
                 $fieldValue = $field[$fieldIdentifier];
610 610
                 if (is_array($fieldValue) && $this->hasLanguageCodesAsKeys($fieldValue)) {
611
-                    foreach($fieldValue as $languageCode => $value) {
611
+                    foreach ($fieldValue as $languageCode => $value) {
612 612
                         $fieldsList[] = [$fieldIdentifier, $value, $languageCode];
613 613
                     }
614 614
                 } else {
615 615
                     $fieldsList[] = [$fieldIdentifier, $fieldValue, $this->getLanguageCode($step)];
616 616
                 }
617 617
             } else if (is_array($field) && $this->hasLanguageCodesAsKeys($field)) {
618
-                foreach($field as $languageCode => $value) {
618
+                foreach ($field as $languageCode => $value) {
619 619
                     $fieldsList[] = [$key, $value, $languageCode];
620 620
                 }
621 621
             } else {
622 622
                 $fieldsList[] = [$key, $field, $this->getLanguageCode($step)];
623 623
             }
624 624
 
625
-            foreach($fieldsList as list($fieldIdentifier, $fieldValue, $language)) {
625
+            foreach ($fieldsList as list($fieldIdentifier, $fieldValue, $language)) {
626 626
                 if (!isset($contentType->fieldDefinitionsByIdentifier[$fieldIdentifier])) {
627 627
                     throw new \Exception("Field '$fieldIdentifier' is not present in content type '{$contentType->identifier}'");
628 628
                 }
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
             },
659 659
             array_filter(
660 660
                 $this->repository->getContentLanguageService()->loadLanguages(),
661
-                function ($language) {
661
+                function($language) {
662 662
                     return $language->enabled;
663 663
                 }
664 664
             )
Please login to merge, or discard this patch.