Code Duplication    Length = 11-11 lines in 2 locations

Core/Matcher/ContentMatcher.php 2 locations

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