| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function handleExceptionAction(Request $request, \Exception $exception) |
||
|
|
|||
| 31 | { |
||
| 32 | $response = 'Sorry, something went wrong.'; |
||
| 33 | |||
| 34 | if (404 === $exception->getCode()) { |
||
| 35 | $response = 'The requested resource could not be found.'; |
||
| 36 | } |
||
| 37 | |||
| 38 | return new Response($response, $exception->getCode()); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.