Conditions | 6 |
Paths | 16 |
Total Lines | 28 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 42 |
Changes | 0 |
1 | <?php |
||
25 | ; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Returns number of accounts with linked Point.im profile |
||
30 | * |
||
31 | * @return int |
||
32 | */ |
||
33 | public function getLinkedAccountsCount(): int |
||
34 | { |
||
35 | return $this->createQueryBuilder('a') |
||
36 | ->select('COUNT(a)') |
||
37 | ->where('a.user IS NOT NULL') |
||
38 | ->getQuery()->getSingleScalarResult() |
||
39 | ; |
||
40 | } |
||
41 | } |