Passed
Push — master ( ab917e...27e7e9 )
by Gaetano
05:46
created
Core/Matcher/ContentMatcher.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,15 +80,15 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.