public function matchScopes($scopes): bool
    {
        $scopes = is_string($scopes) ? explode(' ', $scopes) : $scopes;
        $diff = array_diff($scopes, $this->scopes);

        return empty($diff);
    }
public function matchScopes($scopes): bool
    {
        $scopes = is_string($scopes) ? explode(' ', $scopes) : $scopes;
        $diff = array_diff($scopes, $this->scopes);

        return empty($diff);
    }
public function matchScopes ( $ scopes ) : bool { $ scopes = is_string ( $ scopes ) ? explode ( ' ' , $ scopes ) : $ scopes ; $ diff = array_diff ( $ scopes , $ this -> scopes ) ; return empty ( $ diff ) ; }
Match the scopes of the token with the one provided in the parameter

@param  array|string $scopes
Match the scopes of the token with the one provided in the parameter