Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function get($clientId, $clientSecret = null, $redirectUri = null, $grantType = null) |
||
29 | { |
||
30 | foreach ($this->clients as $client) { |
||
31 | if (($client['id'] === $clientId) && ($client['secret'] === $clientSecret)) { |
||
32 | $clientEntity = new ClientEntity($this->server); |
||
33 | |||
34 | return $clientEntity->hydrate($client); |
||
35 | } |
||
36 | } |
||
37 | |||
38 | return null; |
||
39 | } |
||
40 | |||
49 |