Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.0625 |
Changes | 0 |
1 | <?php |
||
13 | 1 | public function __invoke( |
|
14 | CasInterface $casProtocol, |
||
15 | HttpFoundationFactoryInterface $httpFoundationFactory |
||
16 | ): Response { |
||
17 | 1 | if (null !== $response = $casProtocol->handleProxyCallback()) { |
|
18 | 1 | return $httpFoundationFactory->createResponse($response); |
|
19 | } |
||
20 | |||
21 | return new Response('', Response::HTTP_INTERNAL_SERVER_ERROR); |
||
22 | } |
||
24 |