| Total Complexity | 6 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class UserPirateRoundRepository extends EntityRepository implements UserPirateRoundRepositoryInterface |
||
| 16 | { |
||
| 17 | #[Override] |
||
| 21 | } |
||
| 22 | |||
| 23 | #[Override] |
||
| 24 | public function save(UserPirateRoundInterface $userPirateRound): void |
||
| 25 | { |
||
| 26 | $em = $this->getEntityManager(); |
||
| 27 | |||
| 28 | $em->persist($userPirateRound); |
||
| 29 | } |
||
| 30 | |||
| 31 | #[Override] |
||
| 32 | public function delete(UserPirateRoundInterface $userPirateRound): void |
||
| 33 | { |
||
| 34 | $em = $this->getEntityManager(); |
||
| 35 | |||
| 36 | $em->remove($userPirateRound); |
||
| 37 | } |
||
| 38 | |||
| 39 | #[Override] |
||
| 40 | public function findByPirateRound(int $pirateRoundId): array |
||
| 41 | { |
||
| 42 | return $this->findBy( |
||
| 43 | ['pirate_round_id' => $pirateRoundId], |
||
| 44 | ['prestige' => 'DESC', 'destroyed_ships' => 'DESC'] |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | #[Override] |
||
| 49 | public function findByUser(int $userId): array |
||
| 50 | { |
||
| 51 | return $this->findBy( |
||
| 52 | ['user_id' => $userId], |
||
| 53 | ['pirate_round_id' => 'DESC'] |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | |||
| 57 | #[Override] |
||
| 63 | ]); |
||
| 64 | } |
||
| 65 | } |
||
| 66 |
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