Code Duplication    Length = 11-11 lines in 2 locations

Core/Matcher/ContentMatcher.php 2 locations

@@ 66-76 (lines=11) @@
63
64
            switch($key) {
65
66
                case self::MATCH_RELATES_TO:
67
                    $contentService = $this->repository->getContentService();
68
                    $contents = array();
69
                    // allow to specify the objects to relate to using different ways
70
                    $relatedContents = $this->match($values);
71
                    foreach($relatedContents as $relatedContent) {
72
                        foreach($contentService->loadReverseRelations($relatedContent->contentInfo) as $relatingContent) {
73
                            $contents[$relatingContent->contentInfo->id] = $relatingContent;
74
                        }
75
                    }
76
                    break;
77
78
                case self::MATCH_RELATED_FROM:
79
                    $contentService = $this->repository->getContentService();
@@ 78-88 (lines=11) @@
75
                    }
76
                    break;
77
78
                case self::MATCH_RELATED_FROM:
79
                    $contentService = $this->repository->getContentService();
80
                    $contents = array();
81
                    // allow to specify the objects we relate to using different ways
82
                    $relatingContents = $this->match($values);
83
                    foreach($relatingContents as $relatingContent) {
84
                        foreach($contentService->loadRelations($relatingContent->contentInfo) as $relatedContent) {
85
                            $contents[$relatedContent->contentInfo->id] = $relatedContent;
86
                        }
87
                    }
88
                    break;
89
90
                default:
91