| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 26 | public function getClientEntity($clientIdentifier) |
||
| 27 | { |
||
| 28 | $client = $this->findOneByIdentifier($clientIdentifier); |
||
| 29 | |||
| 30 | // if (!$client || !$client->handlesGrant($grantType)) { |
||
| 31 | // return; |
||
| 32 | // } |
||
| 33 | // |
||
| 34 | // if ($mustValidateSecret && !$client->validateSecret($clientSecret)) { |
||
| 35 | // return; |
||
| 36 | // } |
||
| 37 | return $client; |
||
| 38 | } |
||
| 57 |