@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | } |
250 | 250 | |
251 | 251 | // Add new attributes |
252 | - foreach($newFieldDefinitions as $newFieldDefinition) { |
|
252 | + foreach ($newFieldDefinitions as $newFieldDefinition) { |
|
253 | 253 | if ($newFieldDefinition->position == 0) { |
254 | 254 | $newFieldDefinition->position = ++$maxFieldDefinitionPos; |
255 | 255 | } |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | break; |
371 | 371 | case 'content_type_groups_ids': |
372 | 372 | $value = []; |
373 | - foreach($contentType->contentTypeGroups as $existingGroup) { |
|
373 | + foreach ($contentType->contentTypeGroups as $existingGroup) { |
|
374 | 374 | $value[] = $existingGroup->id; |
375 | 375 | } |
376 | 376 | break; |
@@ -766,7 +766,7 @@ discard block |
||
766 | 766 | $contentTypeGroup = $this->contentTypeGroupMatcher->matchOneByKey($contentTypeGroupId); |
767 | 767 | $contentTypeGroupId = $contentTypeGroup->id; |
768 | 768 | |
769 | - foreach($contentType->contentTypeGroups as $existingGroup) { |
|
769 | + foreach ($contentType->contentTypeGroups as $existingGroup) { |
|
770 | 770 | if ($existingGroup->id === $contentTypeGroupId) { |
771 | 771 | return; |
772 | 772 | } |
@@ -782,7 +782,7 @@ discard block |
||
782 | 782 | $contentTypeGroup = $this->contentTypeGroupMatcher->matchOneByKey($contentTypeGroupId); |
783 | 783 | $contentTypeGroupId = $contentTypeGroup->id; |
784 | 784 | |
785 | - foreach($contentType->contentTypeGroups as $existingGroup) { |
|
785 | + foreach ($contentType->contentTypeGroups as $existingGroup) { |
|
786 | 786 | if ($existingGroup->id === $contentTypeGroupId) { |
787 | 787 | $contentTypeService = $this->repository->getContentTypeService(); |
788 | 788 | $contentTypeService->unassignContentTypeGroup($contentType, $contentTypeGroup); |