original_string: public function collectRoutes()
      {
          $routes = [];
  
          foreach($this->getCollectors() as $collector) {
              $routes = array_merge($routes, $collector->collectRoutes());
          }
  
          return $routes;
      }
code: public function collectRoutes()
      {
          $routes = [];
  
          foreach($this->getCollectors() as $collector) {
              $routes = array_merge($routes, $collector->collectRoutes());
          }
  
          return $routes;
      }
code_tokens: public function collectRoutes ( ) { $ routes = [ ] ; foreach ( $ this -> getCollectors ( ) as $ collector ) { $ routes = array_merge ( $ routes , $ collector -> collectRoutes ( ) ) ; } return $ routes ; }
docstring: Aggregate routes and return an array of Route DTOs
  
  @return RouteInterface[]
docstring_tokens: Aggregate routes and return an array of Route DTOs