| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 11 | public function getClientEntity($clientIdentifier, $grantType, $clientSecret = null, $mustValidateSecret = true) |
|
| 19 | { |
||
| 20 | 11 | $client = $this->findWhere([ |
|
| 21 | 11 | ['id', '=', $clientIdentifier] |
|
| 22 | 11 | ] + ($mustValidateSecret ? [['secret', '=', $clientSecret]] : [])); |
|
| 23 | |||
| 24 | 11 | return $client ? $client->first() : null; |
|
| 25 | } |
||
| 26 | |||
| 28 |