@@ -92,7 +92,7 @@ |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @param array $parameters |
|
| 95 | + * @param string[] $parameters |
|
| 96 | 96 | * @param string $name |
| 97 | 97 | * |
| 98 | 98 | * @return null|string |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | * |
| 58 | 58 | * @return string[]|null |
| 59 | 59 | */ |
| 60 | - protected function clientGetScope(array $parameters): ?array |
|
| 60 | + protected function clientGetScope(array $parameters): ? array |
|
| 61 | 61 | { |
| 62 | 62 | $scope = $this->clientReadStringValue($parameters, 'scope'); |
| 63 | 63 | |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @param array $parameters |
|
| 95 | + * @param string[] $parameters |
|
| 96 | 96 | * @param string $name |
| 97 | 97 | * |
| 98 | 98 | * @return null|string |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | * |
| 78 | 78 | * @return string[]|null |
| 79 | 79 | */ |
| 80 | - protected function codeGetScope(array $parameters): ?array |
|
| 80 | + protected function codeGetScope(array $parameters): ? array |
|
| 81 | 81 | { |
| 82 | 82 | $scope = $this->codeReadStringValue($parameters, 'scope'); |
| 83 | 83 | |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @param array $parameters |
|
| 95 | + * @param string[] $parameters |
|
| 96 | 96 | * @param string $name |
| 97 | 97 | * |
| 98 | 98 | * @return null|string |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | * |
| 80 | 80 | * @return string[]|null |
| 81 | 81 | */ |
| 82 | - protected function implicitGetScope(array $parameters): ?array |
|
| 82 | + protected function implicitGetScope(array $parameters): ? array |
|
| 83 | 83 | { |
| 84 | 84 | $scope = $this->implicitReadStringValue($parameters, 'scope'); |
| 85 | 85 | |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @param array $parameters |
|
| 95 | + * @param string[] $parameters |
|
| 96 | 96 | * @param string $name |
| 97 | 97 | * |
| 98 | 98 | * @return null|string |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | * |
| 80 | 80 | * @return string[]|null |
| 81 | 81 | */ |
| 82 | - protected function passGetScope(array $parameters): ?array |
|
| 82 | + protected function passGetScope(array $parameters): ? array |
|
| 83 | 83 | { |
| 84 | 84 | $scope = $this->passReadStringValue($parameters, 'scope'); |
| 85 | 85 | |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @param array $parameters |
|
| 95 | + * @param string[] $parameters |
|
| 96 | 96 | * @param string $name |
| 97 | 97 | * |
| 98 | 98 | * @return null|string |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * |
| 67 | 67 | * @return string[]|null |
| 68 | 68 | */ |
| 69 | - protected function refreshGetScope(array $parameters): ?array |
|
| 69 | + protected function refreshGetScope(array $parameters): ? array |
|
| 70 | 70 | { |
| 71 | 71 | $scope = $this->refreshReadStringValue($parameters, 'scope'); |
| 72 | 72 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * |
| 80 | 80 | * @return ResponseInterface |
| 81 | 81 | */ |
| 82 | - protected function refreshIssueToken(array $parameters, ?ClientInterface $determinedClient): ResponseInterface |
|
| 82 | + protected function refreshIssueToken(array $parameters, ?ClientInterface $determinedClient) : ResponseInterface |
|
| 83 | 83 | { |
| 84 | 84 | if (($refreshValue = $this->refreshGetValue($parameters)) === null) { |
| 85 | 85 | throw new OAuthTokenBodyException(OAuthTokenBodyException::ERROR_INVALID_REQUEST); |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | 85 | * @param array|null $scopes |
| 86 | - * @param ClientInterface|null $client |
|
| 86 | + * @param ClientInterface $client |
|
| 87 | 87 | * |
| 88 | 88 | * @return array [bool $isScopeValid, string[]|null $scopeList, bool $isScopeModified] |
| 89 | 89 | */ |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | const DEFAULT_MESSAGES = [ |
| 30 | 30 | self::ERROR_INVALID_REQUEST => |
| 31 | - 'The request is missing a required parameter, includes an invalid parameter value, ' . |
|
| 31 | + 'The request is missing a required parameter, includes an invalid parameter value, '. |
|
| 32 | 32 | 'includes a parameter more than once, or is otherwise malformed.', |
| 33 | 33 | |
| 34 | 34 | self::ERROR_UNAUTHORIZED_CLIENT => |
@@ -44,11 +44,11 @@ discard block |
||
| 44 | 44 | 'The requested scope is invalid, unknown, or malformed.', |
| 45 | 45 | |
| 46 | 46 | self::ERROR_SERVER_ERROR => |
| 47 | - 'The authorization server encountered an unexpected condition ' . |
|
| 47 | + 'The authorization server encountered an unexpected condition '. |
|
| 48 | 48 | 'that prevented it from fulfilling the request.', |
| 49 | 49 | |
| 50 | 50 | self::ERROR_TEMPORARILY_UNAVAILABLE => |
| 51 | - 'The authorization server is currently unable to handle the request due to ' . |
|
| 51 | + 'The authorization server is currently unable to handle the request due to '. |
|
| 52 | 52 | 'a temporary overloading or maintenance of the server.', |
| 53 | 53 | ]; |
| 54 | 54 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | const DEFAULT_MESSAGES = [ |
| 30 | 30 | self::ERROR_INVALID_REQUEST => |
| 31 | - 'The request is missing a required parameter, includes an invalid parameter value, ' . |
|
| 31 | + 'The request is missing a required parameter, includes an invalid parameter value, '. |
|
| 32 | 32 | 'includes a parameter more than once, or is otherwise malformed.', |
| 33 | 33 | |
| 34 | 34 | self::ERROR_UNAUTHORIZED_CLIENT => |
@@ -44,11 +44,11 @@ discard block |
||
| 44 | 44 | 'The requested scope is invalid, unknown, or malformed.', |
| 45 | 45 | |
| 46 | 46 | self::ERROR_SERVER_ERROR => |
| 47 | - 'The authorization server encountered an unexpected condition ' . |
|
| 47 | + 'The authorization server encountered an unexpected condition '. |
|
| 48 | 48 | 'that prevented it from fulfilling the request.', |
| 49 | 49 | |
| 50 | 50 | self::ERROR_TEMPORARILY_UNAVAILABLE => |
| 51 | - 'The authorization server is currently unable to handle the request due to ' . |
|
| 51 | + 'The authorization server is currently unable to handle the request due to '. |
|
| 52 | 52 | 'a temporary overloading or maintenance of the server.', |
| 53 | 53 | ]; |
| 54 | 54 | } |
@@ -71,24 +71,24 @@ |
||
| 71 | 71 | * @link https://tools.ietf.org/html/rfc6749#section-5.2 |
| 72 | 72 | */ |
| 73 | 73 | const DEFAULT_MESSAGES = [ |
| 74 | - self::ERROR_INVALID_REQUEST => 'The request is missing a required parameter, includes an unsupported ' . |
|
| 75 | - 'parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes ' . |
|
| 74 | + self::ERROR_INVALID_REQUEST => 'The request is missing a required parameter, includes an unsupported '. |
|
| 75 | + 'parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes '. |
|
| 76 | 76 | 'more than one mechanism for authenticating the client, or is otherwise malformed.', |
| 77 | 77 | |
| 78 | - self::ERROR_INVALID_CLIENT => 'Client authentication failed (e.g., unknown client, no client ' . |
|
| 78 | + self::ERROR_INVALID_CLIENT => 'Client authentication failed (e.g., unknown client, no client '. |
|
| 79 | 79 | 'authentication included, or unsupported authentication method).', |
| 80 | 80 | |
| 81 | - self::ERROR_INVALID_GRANT => 'The provided authorization grant (e.g., authorization code, resource owner ' . |
|
| 82 | - 'credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in ' . |
|
| 81 | + self::ERROR_INVALID_GRANT => 'The provided authorization grant (e.g., authorization code, resource owner '. |
|
| 82 | + 'credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in '. |
|
| 83 | 83 | 'the authorization request, or was issued to another client.', |
| 84 | 84 | |
| 85 | - self::ERROR_UNAUTHORIZED_CLIENT => 'The authenticated client is not authorized to use this ' . |
|
| 85 | + self::ERROR_UNAUTHORIZED_CLIENT => 'The authenticated client is not authorized to use this '. |
|
| 86 | 86 | 'authorization grant type.', |
| 87 | 87 | |
| 88 | - self::ERROR_UNSUPPORTED_GRANT_TYPE => 'The authorization grant type is not supported by the ' . |
|
| 88 | + self::ERROR_UNSUPPORTED_GRANT_TYPE => 'The authorization grant type is not supported by the '. |
|
| 89 | 89 | 'authorization server.', |
| 90 | 90 | |
| 91 | - self::ERROR_INVALID_SCOPE => 'The requested scope is invalid, unknown, malformed, or exceeds the scope ' . |
|
| 91 | + self::ERROR_INVALID_SCOPE => 'The requested scope is invalid, unknown, malformed, or exceeds the scope '. |
|
| 92 | 92 | 'granted by the resource owner.', |
| 93 | 93 | ]; |
| 94 | 94 | |