@@ -80,15 +80,15 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | foreach ($conditions as $key => $values) { |
| 82 | 82 | |
| 83 | - switch($key) { |
|
| 83 | + switch ($key) { |
|
| 84 | 84 | |
| 85 | 85 | case self::MATCH_RELATES_TO: |
| 86 | 86 | $contentService = $this->repository->getContentService(); |
| 87 | 87 | $contents = array(); |
| 88 | 88 | // allow to specify the objects to relate to using different ways |
| 89 | 89 | $relatedContents = $this->match($values); |
| 90 | - foreach($relatedContents as $relatedContent) { |
|
| 91 | - foreach($contentService->loadReverseRelations($relatedContent->contentInfo) as $relatingContent) { |
|
| 90 | + foreach ($relatedContents as $relatedContent) { |
|
| 91 | + foreach ($contentService->loadReverseRelations($relatedContent->contentInfo) as $relatingContent) { |
|
| 92 | 92 | $contents[$relatingContent->contentInfo->id] = $relatingContent; |
| 93 | 93 | } |
| 94 | 94 | } |
@@ -99,8 +99,8 @@ discard block |
||
| 99 | 99 | $contents = array(); |
| 100 | 100 | // allow to specify the objects we relate to using different ways |
| 101 | 101 | $relatingContents = $this->match($values); |
| 102 | - foreach($relatingContents as $relatingContent) { |
|
| 103 | - foreach($contentService->loadRelations($relatingContent->contentInfo) as $relatedContent) { |
|
| 102 | + foreach ($relatingContents as $relatingContent) { |
|
| 103 | + foreach ($contentService->loadRelations($relatingContent->contentInfo) as $relatedContent) { |
|
| 104 | 104 | $contents[$relatedContent->contentInfo->id] = $relatedContent; |
| 105 | 105 | } |
| 106 | 106 | } |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | $query->performCount = false; |
| 350 | 350 | $query->filter = new Query\Criterion\ContentTypeIdentifier('this_is_a_very_unlikely_content_type_identifier'); |
| 351 | 351 | //$query->filter = new Query\Criterion\ContentTypeId($contentTypeIds); |
| 352 | - } catch(NotImplementedException $e) { |
|
| 352 | + } catch (NotImplementedException $e) { |
|
| 353 | 353 | return false; |
| 354 | 354 | } |
| 355 | 355 | } |