PHPCS fixes

This commit is contained in:
Alex Bilbie
2014-05-03 11:08:33 +01:00
parent 5c8ed58c67
commit b82551c97d
10 changed files with 42 additions and 16 deletions

View File

@@ -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
)
);
}
}

View File

@@ -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
)
);
}
}

View File

@@ -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
)
);
}
}

View File

@@ -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);
}
}

View File

@@ -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
)
);
}
}