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