Code Duplication    Length = 8-8 lines in 2 locations

src/PlaygroundCore/View/Helper/SwitchLocaleWidget.php 1 location

@@ 84-91 (lines=8) @@
81
        return $this->routeMatch;
82
    }
83
84
    public function getWebsiteService()
85
    {
86
        if (null === $this->websiteService) {
87
            $this->websiteService = $this->getServiceLocator()->get('playgroundcore_website_service');
88
        }
89
90
        return $this->websiteService;
91
    }
92
93
    public function setWebsiteService($websiteService)
94
    {

src/PlaygroundCore/Controller/Admin/WebsiteController.php 1 location

@@ 70-77 (lines=8) @@
67
        return $this->redirect()->toRoute('admin');
68
    }
69
70
    public function getWebsiteService()
71
    {
72
        if (null === $this->websiteService) {
73
            $this->websiteService = $this->getServiceLocator()->get('playgroundcore_website_service');
74
        }
75
76
        return $this->websiteService;
77
    }
78
79
    public function setWebsiteService($websiteService)
80
    {