| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 31 | public function retrieveByApiKeyAndSecret($apiKey, $secret) |
||
| 32 | { |
||
| 33 | return $this->applicationRepository |
||
| 34 | ->createQueryBuilder('a') |
||
| 35 | ->where('a.secret = :secret') |
||
| 36 | ->setParameter('secret', $secret) |
||
| 37 | ->andWhere('a.apiKey = :api_key') |
||
| 38 | ->setParameter('api_key', $apiKey) |
||
| 39 | ->getQuery() |
||
| 40 | ->getOneOrNullResult() |
||
| 41 | ; |
||
| 42 | } |
||
| 43 | } |
||
| 44 |