| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function getSecretCode(Oauth\Client\Account $client, array $options = []) |
||
| 33 | { |
||
| 34 | $scope = $this->config[ 'scope' ]; |
||
|
|
|||
| 35 | if (isset($options[ 'scope' ])) { |
||
| 36 | if (is_array($options[ 'scope' ])) { |
||
| 37 | $scope = array_merge($scope, $options[ 'scope' ]); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | $params = [ |
||
| 42 | 'scope' => $scope, |
||
| 43 | 'state' => $this->state, |
||
| 44 | 'client_id' => $client->id, |
||
| 45 | 'redirect_uri' => $this->redirect_uri, |
||
| 46 | 'response_type' => $this->response_type, |
||
| 47 | ]; |
||
| 51 | } |