| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 2.5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 1 | public function __invoke(CasInterface $casProtocol, HttpFoundationFactoryInterface $httpFoundationFactory) |
|
| 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 |