Code Duplication    Length = 11-11 lines in 2 locations

src/Surfnet/StepupGateway/GatewayBundle/Controller/GatewayController.php 1 location

@@ 222-232 (lines=11) @@
219
    /**
220
     * @return ResponseContext
221
     */
222
    public function getResponseContext($authenticationMode)
223
    {
224
        switch ($authenticationMode) {
225
            case self::MODE_SFO:
226
                return $this->get($this->get('gateway.proxy.sfo.state_handler')->getResponseContextServiceId());
227
                break;
228
            case self::MODE_SSO:
229
                return $this->get($this->get('gateway.proxy.sso.state_handler')->getResponseContextServiceId());
230
                break;
231
        }
232
    }
233
234
    /**
235
     * @param SAMLResponse $response

src/Surfnet/StepupGateway/GatewayBundle/Controller/SecondFactorController.php 1 location

@@ 708-718 (lines=11) @@
705
    /**
706
     * @return ResponseContext
707
     */
708
    private function getResponseContext($authenticationMode)
709
    {
710
        switch ($authenticationMode) {
711
            case self::MODE_SFO:
712
                return $this->get($this->get('gateway.proxy.sfo.state_handler')->getResponseContextServiceId());
713
                break;
714
            case self::MODE_SSO:
715
                return $this->get($this->get('gateway.proxy.sso.state_handler')->getResponseContextServiceId());
716
                break;
717
        }
718
    }
719
720
    /**
721
     * @return \Surfnet\StepupGateway\GatewayBundle\Monolog\Logger\AuthenticationLogger