Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public static function checkScopeUsedOnce(string $scope, array $scopes) |
||
26 | { |
||
27 | if (1 < count(array_keys($scopes, $scope))) { |
||
28 | throw new OAuth2Exception(400, ['error' => OAuth2ResponseFactoryManager::ERROR_INVALID_SCOPE, 'error_description' => sprintf('Scope \'%s\' appears more than once.', $scope)]); |
||
29 | } |
||
30 | } |
||
31 | |||
44 |