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