| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class MysqlCategoryRepository extends MysqlRepository |
||
| 16 | { |
||
| 17 | public function add(CategoryView $postView): void |
||
| 18 | { |
||
| 19 | $this->register($postView); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @throws \Doctrine\ORM\NonUniqueResultException |
||
| 24 | */ |
||
| 25 | public function oneByUuid(AggregateRootId $id) |
||
| 33 | } |
||
| 34 | |||
| 35 | public function delete(string $id) |
||
| 36 | { |
||
| 37 | /** @var object $post */ |
||
| 38 | $post = $this->repository->find($id); |
||
| 39 | $this->entityManager->remove($post); |
||
| 40 | $this->entityManager->flush(); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * MysqlUserReadModelRepository constructor. |
||
| 45 | */ |
||
| 46 | public function __construct(EntityManagerInterface $entityManager) |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
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