Code Duplication    Length = 8-8 lines in 2 locations

Common/BasePresenter.php 1 location

@@ 102-109 (lines=8) @@
99
     * @param  \WebCMS2\Entity\Page $page Page entity object.
100
     * @return string               Url address of the link.
101
     */
102
    private function getSitemapLink($page)
103
    {
104
        $url = $this->context->httpRequest->url->baseUrl;
105
        $url .= !$page->getLanguage()->getDefaultFrontend() ? $page->getLanguage()->getAbbr().'/' : '';
106
        $url .= $page->getPath();
107
108
        return $url;
109
    }
110
111
    /**
112
     *

FrontendModule/presenters/BasePresenter.php 1 location

@@ 291-298 (lines=8) @@
288
        file_put_contents('./sitemap.xml', $sitemapXml);
289
    }
290
291
    private function getSitemapLink($page)
292
    {
293
        $url = $this->context->httpRequest->url->baseUrl;
294
        $url .= !$page->getLanguage()->getDefaultFrontend() ? $page->getLanguage()->getAbbr().'/' : '';
295
        $url .= $page->getPath();
296
297
        return $url;
298
    }
299
300
    public function createTemplate($class = null)
301
    {