Code Duplication    Length = 10-13 lines in 2 locations

src/Surfnet/StepupGateway/SamlStepupProviderBundle/Controller/SamlProxyController.php 1 location

@@ 288-300 (lines=13) @@
285
     * @param SAMLResponse $response
286
     * @return Response
287
     */
288
    public function renderSamlResponse($view, StateHandler $stateHandler, SAMLResponse $response)
289
    {
290
        $response = $this->render($view, [
291
            'acu'        => $response->getDestination(),
292
            'response'   => $this->getResponseAsXML($response),
293
            'relayState' => $stateHandler->getRelayState()
294
        ]);
295
296
        // clear the state so we can call again :)
297
        $stateHandler->clear();
298
299
        return $response;
300
    }
301
302
    /**
303
     * @param string   $view

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

@@ 256-265 (lines=10) @@
253
     * @param SAMLResponse $response
254
     * @return Response
255
     */
256
    public function renderSamlResponse($view, SAMLResponse $response)
257
    {
258
        $responseContext = $this->getResponseContext();
259
260
        return $this->render($view, [
261
            'acu'        => $responseContext->getDestination(),
262
            'response'   => $this->getResponseAsXML($response),
263
            'relayState' => $responseContext->getRelayState()
264
        ]);
265
    }
266
267
    /**
268
     * @param string   $view