original_string: public function findFieldInArray($fieldname) {
          foreach ($this->fields as $i => $field) {
              if ($fieldname == $field->getName()) {
                  return $i;
              }
          }
          return null;
      }
code: public function findFieldInArray($fieldname) {
          foreach ($this->fields as $i => $field) {
              if ($fieldname == $field->getName()) {
                  return $i;
              }
          }
          return null;
      }
code_tokens: public function findFieldInArray ( $ fieldname ) { foreach ( $ this -> fields as $ i => $ field ) { if ( $ fieldname == $ field -> getName ( ) ) { return $ i ; } } return null ; }
docstring: Returns the position of one field in the array.
  @param string $fieldname
  @return int|null index of the field, or null if not found.
docstring_tokens: Returns the position of one field in the array .