From 7b9899c46b0c339c95c559da4af422d6d45c60b6 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 4 Aug 2014 09:11:44 +0100 Subject: [PATCH] Removed line break in error messages --- src/Exception/InvalidGrantException.php | 3 +-- src/Exception/InvalidRequestException.php | 3 +-- src/Exception/ServerErrorException.php | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Exception/InvalidGrantException.php b/src/Exception/InvalidGrantException.php index 3b9f5d79..051330e9 100644 --- a/src/Exception/InvalidGrantException.php +++ b/src/Exception/InvalidGrantException.php @@ -34,8 +34,7 @@ class InvalidGrantException extends OAuthException { 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.', + '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 ) ); diff --git a/src/Exception/InvalidRequestException.php b/src/Exception/InvalidRequestException.php index d47d6fb4..56dd75df 100644 --- a/src/Exception/InvalidRequestException.php +++ b/src/Exception/InvalidRequestException.php @@ -34,8 +34,7 @@ class InvalidRequestException extends OAuthException { 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.', + '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 ) ); diff --git a/src/Exception/ServerErrorException.php b/src/Exception/ServerErrorException.php index bdcec4dc..fe5a7df1 100644 --- a/src/Exception/ServerErrorException.php +++ b/src/Exception/ServerErrorException.php @@ -31,8 +31,7 @@ class ServerErrorException extends OAuthException */ public function __construct($parameter = null) { - $parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented - it from fulfilling the request.' : $parameter; + $parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.' : $parameter; parent::__construct($parameter); } }