| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 2 | public function __invoke( |
|
| 26 | Request $request, |
||
| 27 | CasInterface $cas, |
||
| 28 | TokenStorageInterface $tokenStorage |
||
| 29 | ) { |
||
| 30 | 2 | $response = $cas->logout($request->query->all()); |
|
| 31 | |||
| 32 | 2 | if (null === $response) { |
|
| 33 | 1 | return new RedirectResponse('/'); |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | $tokenStorage->setToken(); |
|
| 37 | |||
| 38 | 1 | return $response; |
|
| 39 | } |
||
| 41 |