mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
PHPCS fixes
This commit is contained in:
@@ -32,6 +32,12 @@ class InvalidGrantException extends OAuthException
|
||||
|
||||
public function __construct($parameter)
|
||||
{
|
||||
parent::__construct(sprintf('The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. Check the "%s" parameter.', $parameter));
|
||||
parent::__construct(
|
||||
sprintf(
|
||||
'The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used
|
||||
in the authorization request, or was issued to another client. Check the "%s" parameter.',
|
||||
$parameter
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,6 +32,12 @@ class InvalidRequestException extends OAuthException
|
||||
|
||||
public function __construct($parameter)
|
||||
{
|
||||
parent::__construct(sprintf('The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the "%s" parameter.', $parameter));
|
||||
parent::__construct(
|
||||
sprintf(
|
||||
'The request is missing a required parameter, includes an invalid parameter value, includes a parameter
|
||||
more than once, or is otherwise malformed. Check the "%s" parameter.',
|
||||
$parameter
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,6 +32,11 @@ class InvalidScopeException extends OAuthException
|
||||
|
||||
public function __construct($parameter)
|
||||
{
|
||||
parent::__construct(sprintf('The requested scope is invalid, unknown, or malformed. Check the "%s" scope.', $parameter));
|
||||
parent::__construct(
|
||||
sprintf(
|
||||
'The requested scope is invalid, unknown, or malformed. Check the "%s" scope.',
|
||||
$parameter
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,8 +29,10 @@ class ServerErrorException extends OAuthException
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function __construct($parameter = 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.')
|
||||
{
|
||||
public function __construct(
|
||||
$parameter = 'The authorization server encountered an unexpected condition which prevented it from fulfilling'
|
||||
. 'the request.'
|
||||
) {
|
||||
parent::__construct($parameter);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,6 +32,11 @@ class UnsupportedGrantTypeException extends OAuthException
|
||||
|
||||
public function __construct($parameter)
|
||||
{
|
||||
parent::__construct(sprintf('The authorization grant type "%s" is not supported by the authorization server.', $parameter));
|
||||
parent::__construct(
|
||||
sprintf(
|
||||
'The authorization grant type "%s" is not supported by the authorization server.',
|
||||
$parameter
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user