| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function get($clientId, $clientSecret = null, $redirectUri = null, $grantType = null) |
||
| 16 | { |
||
| 17 | if (('client-id' === $clientId) && ('client-secret' === $clientSecret)) { |
||
| 18 | $clientEntity = new ClientEntity($this->server); |
||
| 19 | |||
| 20 | return $clientEntity->hydrate([ |
||
| 21 | 'id' => $clientId, |
||
| 22 | 'secret' => $clientSecret, |
||
| 23 | ]); |
||
| 24 | } |
||
| 25 | |||
| 26 | return null; |
||
| 27 | } |
||
| 28 | |||
| 37 |