| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 63 | public function __invoke( | ||
| 64 | CurrentRoute $currentRoute, | ||
| 65 | UserRepository $userRepository, | ||
| 66 | ResponseFactory $responseFactory, | ||
| 67 |     ): ResponseInterface { | ||
| 68 | /** | ||
| 69 | * @var User $user | ||
| 70 | */ | ||
| 71 |         $user = $userRepository->findByPK($currentRoute->getArgument('id')); | ||
| 72 |         if ($user === null) { | ||
| 73 | throw new NotFoundException(); | ||
| 74 | } | ||
| 75 | |||
| 76 | return $responseFactory->create($user); | ||
| 77 | } | ||
| 79 | 
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