| Total Complexity | 1 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | trait JsonHandler |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Handle the json response. Check if exception is treated. If true call |
||
| 12 | * the specific handler. If false set the default response to be returned. |
||
| 13 | * |
||
| 14 | * @param Exception $exception |
||
| 15 | * @return JsonResponse |
||
|
|
|||
| 16 | */ |
||
| 17 | public function jsonResponse(Exception $exception) |
||
| 22 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths