| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function getClientDetails($client_id) |
||
| 20 | { |
||
| 21 | if (!array_key_exists($client_id, $this->clients)) { |
||
| 22 | return null; |
||
| 23 | } |
||
| 24 | $default_client_details = [ |
||
| 25 | 'client_id' => $client_id, |
||
| 26 | 'client_secret' => null, |
||
| 27 | 'redirect_uri' => null, |
||
| 28 | 'scope' => null, |
||
| 29 | ]; |
||
| 30 | return array_intersect_key( |
||
| 31 | array_merge($default_client_details, $this->clients[$client_id]), |
||
| 32 | $default_client_details |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 62 |