| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public static function scopeNotAllowedForClient($scope, $redirectUri = null) |
||
| 33 | { |
||
| 34 | $errorMessage = 'The requested scope is not allowed for the specified client.'; |
||
| 35 | |||
| 36 | $hint = \sprintf( |
||
| 37 | 'Configure the `%s` scope for the client or remove it from the request.', |
||
| 38 | \htmlspecialchars($scope, ENT_QUOTES, 'UTF-8', false) |
||
| 39 | ); |
||
| 40 | |||
| 41 | return new static($errorMessage, 5, 'scope_not_allowed_for_client', 403, $hint, $redirectUri); |
||
| 42 | } |
||
| 44 |