Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function findByHostname(string $host) |
||
22 | { |
||
23 | $qb = $this->pool->getConnectionForTable('tx_mksamlauth_domain_model_identityprovider') |
||
24 | ->createQueryBuilder(); |
||
25 | |||
26 | $qb->select('i.*'); |
||
27 | $qb->from('tx_mksamlauth_domain_model_identityprovider', 'i'); |
||
28 | $qb->innerJoin('i', 'sys_domain', 'd', 'd.uid = i.domain'); |
||
29 | $qb->where($qb->expr()->eq( |
||
30 | 'd.domainName', |
||
31 | $qb->createNamedParameter($host) |
||
32 | )); |
||
33 | |||
34 | return $qb->execute()->fetch(); |
||
35 | } |
||
37 |