| Conditions | 2 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 2.864 |
| Changes | 0 | ||
| 1 | <?php namespace Pz\Doctrine\Rest\Action; |
||
| 27 | 1 | public function show(ShowRequestInterface $request) |
|
| 28 | { |
||
| 29 | 1 | if (null === ($entity = $this->repository()->find($request->getId()))) { |
|
| 30 | throw new NotFoundHttpException(); |
||
| 31 | } |
||
| 32 | |||
| 33 | $request->authorize($entity); |
||
| 34 | |||
| 35 | return $this->response()->show($request, $entity); |
||
| 36 | } |
||
| 38 |
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