Code Duplication    Length = 8-8 lines in 2 locations

src/Service/AuthenticatorService.php 2 locations

@@ 96-103 (lines=8) @@
93
    /**
94
     * @return bool
95
     */
96
    public function redirectToAccessDeniedPage()
97
    {
98
        /** @var Config $config */
99
        $config  = $this->controller->getServiceLocator()->get(Config::class);
100
        $authUrl = $config->get('auth:authUrl');
101
102
        return $this->controller->redirect($authUrl);
103
    }
104
105
    /**
106
     * @return bool
@@ 108-115 (lines=8) @@
105
    /**
106
     * @return bool
107
     */
108
    public function redirectToAuthentication()
109
    {
110
        /** @var Config $config */
111
        $config  = $this->controller->getServiceLocator()->get(Config::class);
112
        $authUrl = $config->get('auth:authUrl');
113
114
        return $this->controller->redirect($authUrl);
115
    }
116
117
    /**
118
     * @param array $roles