original_string: public static function getCurrentRoute()
      {
          if (!static::$currentRoute) {
              $uri = Grav::instance()['uri'];
              static::$currentRoute = RouteFactory::createFromParts($uri->toArray());
          }
  
          return static::$currentRoute;
      }
code: public static function getCurrentRoute()
      {
          if (!static::$currentRoute) {
              $uri = Grav::instance()['uri'];
              static::$currentRoute = RouteFactory::createFromParts($uri->toArray());
          }
  
          return static::$currentRoute;
      }
code_tokens: public static function getCurrentRoute ( ) { if ( ! static :: $ currentRoute ) { $ uri = Grav :: instance ( ) [ 'uri' ] ; static :: $ currentRoute = RouteFactory :: createFromParts ( $ uri -> toArray ( ) ) ; } return static :: $ currentRoute ; }
docstring: Returns current route.
  
  @return \Grav\Framework\Route\Route
docstring_tokens: Returns current route .