| Conditions | 4 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 9 | public function supports(Request $request): bool |
|
| 32 | { |
||
| 33 | 9 | $routeParameters = $request->get('_route_params'); |
|
| 34 | |||
| 35 | 9 | if (!\is_array($routeParameters)) { |
|
| 36 | 1 | return false; |
|
| 37 | } |
||
| 38 | |||
| 39 | if ( |
||
| 40 | 8 | !isset($routeParameters[LAGAdminBundle::REQUEST_PARAMETER_ADMIN]) || |
|
| 41 | 8 | !isset($routeParameters[LAGAdminBundle::REQUEST_PARAMETER_ACTION]) |
|
| 42 | ) { |
||
| 43 | 5 | return false; |
|
| 44 | } |
||
| 45 | |||
| 46 | 3 | return true; |
|
| 47 | } |
||
| 49 |