Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function getScopes(ClientInterface $client, ?array $scopes): array |
||
34 | { |
||
35 | if (empty($scopes)) { |
||
36 | throw new OAuthException('invalid_scope', |
||
37 | 'The request is missing the required parameter scope.', |
||
38 | 'https://tools.ietf.org/html/rfc6749#section-4.1'); |
||
39 | } |
||
40 | return $scopes; |
||
41 | } |
||
42 | } |