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

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