original_string: private function buildValidRoute(Route $route): void
      {
          //add to route array the passed uri for param check when call
          $matches = $this->routeMatches;
  
          //route match and there is a subpattern with action
          if (\count($matches) > 1) {
              //assume that subpattern rapresent action
              $route->action = $matches[1];
  
              //url clean
              $route->url = \preg_replace('`\([0-9A-Za-z\|]++\)`', $matches[1], $route->url);
          }
  
          $route->param = $this->buildParam($route);
  
          $this->route = $route;
      }
code: private function buildValidRoute(Route $route): void
      {
          //add to route array the passed uri for param check when call
          $matches = $this->routeMatches;
  
          //route match and there is a subpattern with action
          if (\count($matches) > 1) {
              //assume that subpattern rapresent action
              $route->action = $matches[1];
  
              //url clean
              $route->url = \preg_replace('`\([0-9A-Za-z\|]++\)`', $matches[1], $route->url);
          }
  
          $route->param = $this->buildParam($route);
  
          $this->route = $route;
      }
code_tokens: private function buildValidRoute ( Route $ route ) : void { //add to route array the passed uri for param check when call $ matches = $ this -> routeMatches ; //route match and there is a subpattern with action if ( \ count ( $ matches ) > 1 ) { //assume that subpattern rapresent action $ route -> action = $ matches [ 1 ] ; //url clean $ route -> url = \ preg_replace ( '`\([0-9A-Za-z\|]++\)`' , $ matches [ 1 ] , $ route -> url ) ; } $ route -> param = $ this -> buildParam ( $ route ) ; $ this -> route = $ route ; }
docstring: Build a valid route.
  
  @param Route $route
  
  @return void
docstring_tokens: Build a valid route .