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