From e6cc6c35ecce1b3be416f97590b75ff3c7632efa Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 17 Jan 2016 13:49:53 +0000 Subject: [PATCH] Scope delimiter string is now a constant --- src/Grant/AbstractGrant.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Grant/AbstractGrant.php b/src/Grant/AbstractGrant.php index ed2404f2..934456e6 100644 --- a/src/Grant/AbstractGrant.php +++ b/src/Grant/AbstractGrant.php @@ -29,6 +29,8 @@ use Psr\Http\Message\ServerRequestInterface; */ abstract class AbstractGrant implements GrantTypeInterface { + const SCOPE_DELIMITER_STRING = ' '; + /** * Grant identifier * @@ -181,7 +183,6 @@ abstract class AbstractGrant implements GrantTypeInterface /** * @param string $scopeParamValue A string containing a delimited set of scope identifiers - * @param string $scopeDelimiterString The delimiter between the scopes in the value string * @param ClientEntityInterface $client * @param string $redirectUri * @@ -190,12 +191,11 @@ abstract class AbstractGrant implements GrantTypeInterface */ public function validateScopes( $scopeParamValue, - $scopeDelimiterString, ClientEntityInterface $client, $redirectUri = null ) { $scopesList = array_filter( - explode($scopeDelimiterString, trim($scopeParamValue)), + explode(self::SCOPE_DELIMITER_STRING, trim($scopeParamValue)), function ($scope) { return !empty($scope); }