original_string: public function staticPath()
      {
          $routeKey = strpos($this->template, ':');
          if ($routeKey !== false) {
              return substr($this->template, 0, $routeKey);
          }
          $routeKey = strpos($this->template, '{');
          if ($routeKey !== false && strpos($this->template, '}') !== false) {
              return substr($this->template, 0, $routeKey);
          }
          $star = strpos($this->template, '*');
          if ($star !== false) {
              $path = rtrim(substr($this->template, 0, $star), '/');
  
              return $path === '' ? '/' : $path;
          }
  
          return $this->template;
      }
code: public function staticPath()
      {
          $routeKey = strpos($this->template, ':');
          if ($routeKey !== false) {
              return substr($this->template, 0, $routeKey);
          }
          $routeKey = strpos($this->template, '{');
          if ($routeKey !== false && strpos($this->template, '}') !== false) {
              return substr($this->template, 0, $routeKey);
          }
          $star = strpos($this->template, '*');
          if ($star !== false) {
              $path = rtrim(substr($this->template, 0, $star), '/');
  
              return $path === '' ? '/' : $path;
          }
  
          return $this->template;
      }
code_tokens: public function staticPath ( ) { $ routeKey = strpos ( $ this -> template , ':' ) ; if ( $ routeKey !== false ) { return substr ( $ this -> template , 0 , $ routeKey ) ; } $ routeKey = strpos ( $ this -> template , '{' ) ; if ( $ routeKey !== false && strpos ( $ this -> template , '}' ) !== false ) { return substr ( $ this -> template , 0 , $ routeKey ) ; } $ star = strpos ( $ this -> template , '*' ) ; if ( $ star !== false ) { $ path = rtrim ( substr ( $ this -> template , 0 , $ star ) , '/' ) ; return $ path === '' ? '/' : $ path ; } return $ this -> template ; }
docstring: Get the static path portion for this route.
  
  @return string
docstring_tokens: Get the static path portion for this route .