| Total Complexity | 5 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | final class WormholeRestrictionRepository extends EntityRepository implements WormholeRestrictionRepositoryInterface |
||
| 17 | { |
||
| 18 | #[Override] |
||
| 19 | public function prototype(): WormholeRestriction |
||
| 20 | { |
||
| 21 | return new WormholeRestriction(); |
||
| 22 | } |
||
| 23 | |||
| 24 | #[Override] |
||
| 25 | public function save(WormholeRestriction $restriction): void |
||
| 26 | { |
||
| 27 | $em = $this->getEntityManager(); |
||
| 28 | $em->persist($restriction); |
||
| 29 | } |
||
| 30 | |||
| 31 | #[Override] |
||
| 38 | } |
||
| 39 | |||
| 40 | #[Override] |
||
| 41 | public function existsForTargetAndTypeAndEntry(int $targetId, ?WormholeEntryTypeEnum $privilegeType, WormholeEntry $wormholeEntry): bool |
||
| 42 | { |
||
| 43 | return $this->count([ |
||
| 44 | 'wormholeEntry' => $wormholeEntry, |
||
| 45 | 'target' => $targetId, |
||
| 46 | 'privilege_type' => $privilegeType, |
||
| 47 | ]) > 0; |
||
| 48 | } |
||
| 49 | |||
| 50 | #[Override] |
||
| 65 | } |
||
| 66 | } |
||
| 67 |
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