original_string: public function removeAllFieldsByName($name)
      {
          foreach ($this->fields as $i => $field) {
              if ($field->getName() == $name) {
                  unset($this->fields[$i]);
              }
          }
  
          return $this;
      }
code: public function removeAllFieldsByName($name)
      {
          foreach ($this->fields as $i => $field) {
              if ($field->getName() == $name) {
                  unset($this->fields[$i]);
              }
          }
  
          return $this;
      }
code_tokens: public function removeAllFieldsByName ( $ name ) { foreach ( $ this -> fields as $ i => $ field ) { if ( $ field -> getName ( ) == $ name ) { unset ( $ this -> fields [ $ i ] ) ; } } return $ this ; }
docstring: Remove all fields by the given name.
  If there are more then 1 field with the given name, then all will be removed.
  
  @param $name
  @return Form
docstring_tokens: Remove all fields by the given name . If there are more then 1 field with the given name then all will be removed .