Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public static function checkScopeCharset(string $scope) |
||
38 | { |
||
39 | if (1 !== preg_match('/^[\x20\x23-\x5B\x5D-\x7E]+$/', $scope)) { |
||
40 | throw new OAuth2Exception(400, ['error' => OAuth2ResponseFactoryManager::ERROR_INVALID_SCOPE, 'error_description' => 'Scope contains illegal characters.']); |
||
41 | } |
||
42 | } |
||
43 | } |
||
44 |