@@ -22,12 +22,12 @@ discard block |
||
22 | 22 | $relatedEntities = array(); |
23 | 23 | |
24 | 24 | $fieldValue = $this->content()->getFieldValue($fieldName); |
25 | - if (! $fieldValue instanceof RelationList\Value) { |
|
25 | + if (!$fieldValue instanceof RelationList\Value) { |
|
26 | 26 | throw new \RuntimeException("Field '$fieldName' is not of type RelationList"); |
27 | 27 | } |
28 | 28 | |
29 | 29 | $relatedContentItems = array(); |
30 | - foreach($fieldValue->destinationContentIds as $contentId) { |
|
30 | + foreach ($fieldValue->destinationContentIds as $contentId) { |
|
31 | 31 | // Just in case the object has been pu tin the trash or hidden and they have not updated the related fields to remove from view. |
32 | 32 | try { |
33 | 33 | $relatedContentItems[] = $this->getContentService()->loadContent($contentId); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | protected function getRelation($fieldName) |
50 | 50 | { |
51 | 51 | $fieldValue = $this->content()->getFieldValue($fieldName); |
52 | - if (! $fieldValue instanceof Relation\Value) { |
|
52 | + if (!$fieldValue instanceof Relation\Value) { |
|
53 | 53 | throw new \RuntimeException("Field '$fieldName' is not of type Relation"); |
54 | 54 | } |
55 | 55 |