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