| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class BookReadModel extends MysqlRepository |
||
| 13 | { |
||
| 14 | public function add(BookView $postView): void |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @throws \Doctrine\ORM\NonUniqueResultException |
||
| 21 | */ |
||
| 22 | public function oneByUuid(AggregateRootId $id) |
||
| 23 | { |
||
| 24 | $qb = $this->repository |
||
| 25 | ->createQueryBuilder('book') |
||
| 26 | ->where('book.id = :id') |
||
| 27 | ->setParameter('id', $id->toString()); |
||
| 28 | |||
| 29 | return $this->oneOrException($qb); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function delete(string $id) |
||
| 33 | { |
||
| 34 | $post = $this->repository->find($id); |
||
| 35 | $this->entityManager->remove($post); |
||
| 36 | $this->entityManager->flush(); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * MysqlUserReadModelRepository constructor. |
||
| 41 | */ |
||
| 42 | public function __construct(EntityManagerInterface $entityManager) |
||
| 46 | } |
||
| 47 | } |
||
| 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