| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class HttpExceptionMapper |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var array<string, int> |
||
| 16 | */ |
||
| 17 | private const EXCEPTION_CODE_MAP = [ |
||
| 18 | NotFoundException::class => Status::NOT_FOUND, |
||
| 19 | BadRequestException::class => Status::BAD_REQUEST, |
||
| 20 | ]; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @psalm-suppress InvalidArrayOffset |
||
| 24 | */ |
||
| 25 | public function getCode(Throwable $e): int |
||
| 30 |
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