Code Duplication    Length = 11-17 lines in 3 locations

eZ/Publish/Core/Repository/SiteAccessAware/ContentService.php 1 location

@@ 77-87 (lines=11) @@
74
        return $this->service->loadVersionInfoById($contentId, $versionNo);
75
    }
76
77
    public function loadContentByContentInfo(APIContentInfo $contentInfo, array $languages = null, $versionNo = null, $useAlwaysAvailable = true)
78
    {
79
        $languages = $this->languageResolver->getLanguages($languages);
80
81
        return $this->service->loadContentByContentInfo(
82
            $contentInfo,
83
            $languages,
84
            $versionNo,
85
            $useAlwaysAvailable
86
        );
87
    }
88
89
    public function loadContentByVersionInfo(APIVersionInfo $versionInfo, array $languages = null, $useAlwaysAvailable = true)
90
    {

eZ/Publish/Core/Repository/SiteAccessAware/URLAliasService.php 2 locations

@@ 58-74 (lines=17) @@
55
        return $this->service->createGlobalUrlAlias($resource, $path, $languageCode, $forwarding, $alwaysAvailable);
56
    }
57
58
    public function listLocationAliases(
59
        Location $location,
60
        $custom = true,
61
        $languageCode = null,
62
        $showAllTranslations = null,
63
        array $prioritizedLanguageList = null
64
    ) {
65
        $prioritizedLanguageList = $this->languageResolver->getLanguages($prioritizedLanguageList ?: []);
66
67
        return $this->service->listLocationAliases(
68
            $location,
69
            $custom,
70
            $languageCode,
71
            $showAllTranslations,
72
            $prioritizedLanguageList
73
        );
74
    }
75
76
    public function listGlobalAliases($languageCode = null, $offset = 0, $limit = -1)
77
    {
@@ 91-105 (lines=15) @@
88
        return $this->service->lookup($url, $languageCode);
89
    }
90
91
    public function reverseLookup(
92
        Location $location,
93
        $languageCode = null,
94
        $showAllTranslations = null,
95
        array $prioritizedLanguageList = null
96
    ) {
97
        $prioritizedLanguageList = $this->languageResolver->getLanguages($prioritizedLanguageList ?: []);
98
99
        return $this->service->reverseLookup(
100
            $location,
101
            $languageCode,
102
            $showAllTranslations,
103
            $prioritizedLanguageList
104
        );
105
    }
106
107
    public function load($id)
108
    {