| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 2 | public function findDomainsWithout(?string $excludedAuthority = null): array |
|
| 16 | { |
||
| 17 | 2 | $qb = $this->createQueryBuilder('d')->orderBy('d.authority', 'ASC'); |
|
| 18 | |||
| 19 | 2 | if ($excludedAuthority !== null) { |
|
| 20 | 2 | $qb->where($qb->expr()->neq('d.authority', ':excludedAuthority')) |
|
| 21 | 2 | ->setParameter('excludedAuthority', $excludedAuthority); |
|
| 22 | } |
||
| 23 | |||
| 24 | 2 | return $qb->getQuery()->getResult(); |
|
| 25 | } |
||
| 27 |