| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | #[AsService, AsTagged(FormatterInterface::class)] |
||
| 17 | class ValidationFormatter implements FormatterInterface |
||
| 18 | 1 | { |
|
| 19 | public function __invoke(ValidationException $e): ErrorContract |
||
| 20 | 1 | { |
|
| 21 | 1 | return new FormattedError( |
|
| 22 | $e->getMessage(), |
||
| 23 | 1 | Response::HTTP_UNPROCESSABLE_ENTITY, |
|
| 24 | 1 | self::formatErrors(...$e->errors), |
|
| 25 | $e->getTrace(), |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | 1 | ||
| 29 | public static function getExceptionClass(): string |
||
| 32 | } |
||
| 33 | 1 | ||
| 34 | public static function getPriority(): int |
||
| 37 | } |
||
| 38 | 1 | ||
| 39 | private static function formatErrors(Error ...$errors): array |
||
| 48 |
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