original_string: public function currentRouteNamed($name)
      {
          if (! is_null($route = $this->current())) {
              return ($route->getName() == $name);
          }
  
          return false;
      }
code: public function currentRouteNamed($name)
      {
          if (! is_null($route = $this->current())) {
              return ($route->getName() == $name);
          }
  
          return false;
      }
code_tokens: public function currentRouteNamed ( $ name ) { if ( ! is_null ( $ route = $ this -> current ( ) ) ) { return ( $ route -> getName ( ) == $ name ) ; } return false ; }
docstring: Determine if the current route matches a given name.
  
  @param  string  $name
  @return bool
docstring_tokens: Determine if the current route matches a given name .