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