Code Duplication    Length = 11-11 lines in 2 locations

Core/Matcher/ContentMatcher.php 2 locations

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