original_string: public function removeField(Element $field)
      {
          foreach ($this->fields as $i => $elem) {
              if ($elem == $field) {
                  unset($this->fields[$i]);
                  break;
              }
          }
  
          return $this;
      }
code: public function removeField(Element $field)
      {
          foreach ($this->fields as $i => $elem) {
              if ($elem == $field) {
                  unset($this->fields[$i]);
                  break;
              }
          }
  
          return $this;
      }
code_tokens: public function removeField ( Element $ field ) { foreach ( $ this -> fields as $ i => $ elem ) { if ( $ elem == $ field ) { unset ( $ this -> fields [ $ i ] ) ; break ; } } return $ this ; }
docstring: Remove a field from the form
  
  @param Element $field
  @return Form
docstring_tokens: Remove a field from the form