original_string: public function checkScope($scope)
    {
        if ($this->OAuthResponse) {
            return $this->OAuthResponse->hasScope($scope);
        }
  
        return in_array($scope, $this->getScope());
    }
code: public function checkScope($scope)
    {
        if ($this->OAuthResponse) {
            return $this->OAuthResponse->hasScope($scope);
        }
  
        return in_array($scope, $this->getScope());
    }
code_tokens: public function checkScope ( $ scope ) { if ( $ this -> OAuthResponse ) { return $ this -> OAuthResponse -> hasScope ( $ scope ) ; } return in_array ( $ scope , $ this -> getScope ( ) ) ; }
docstring: Checks if the scope is registered.
  
  @param  string $scope Scope name
  
  @return bool
docstring_tokens: Checks if the scope is registered .