| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function __invoke(CasInterface $casProtocol, HttpFoundationFactoryInterface $httpFoundationFactory): Response |
||
| 23 | { |
||
| 24 | if (null !== $response = $casProtocol->handleProxyCallback()) { |
||
| 25 | return $httpFoundationFactory->createResponse($response); |
||
| 26 | } |
||
| 27 | |||
| 28 | return new Response('', Response::HTTP_INTERNAL_SERVER_ERROR); |
||
| 29 | } |
||
| 31 |