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