src/Grant/AbstractGrant.php
private function convertScopesQueryStringToArray($scopes)
    {
        return array_filter(explode(self::SCOPE_DELIMITER_STRING, trim($scopes)), function ($scope) {
            return !empty($scope);
        });
    }
private function convertScopesQueryStringToArray($scopes)
    {
        return array_filter(explode(self::SCOPE_DELIMITER_STRING, trim($scopes)), function ($scope) {
            return !empty($scope);
        });
    }
private function convertScopesQueryStringToArray ( $ scopes ) { return array_filter ( explode ( self :: SCOPE_DELIMITER_STRING , trim ( $ scopes ) ) , function ( $ scope ) { return ! empty ( $ scope ) ; } ) ; }
Converts a scopes query string to an array to easily iterate for validation.

@param string $scopes

@return array
Converts a scopes query string to an array to easily iterate for validation .