original_string: public function addDefaults(array $defaults)
      {
          if ($defaults) {
              foreach ($this->routes as $route) {
                  $route->addDefaults($defaults);
              }
          }
      }
code: public function addDefaults(array $defaults)
      {
          if ($defaults) {
              foreach ($this->routes as $route) {
                  $route->addDefaults($defaults);
              }
          }
      }
code_tokens: public function addDefaults ( array $ defaults ) { if ( $ defaults ) { foreach ( $ this -> routes as $ route ) { $ route -> addDefaults ( $ defaults ) ; } } }
docstring: Adds defaults to all routes.
  
  An existing default value under the same name in a route will be overridden.
  
  @param array $defaults An array of default values
docstring_tokens: Adds defaults to all routes .