original_string: public function getFieldNum($fieldName)
      {
          foreach( $this->_fields as $field ) {
              if( $field->name == $fieldName ) {
                  return $field->number;
              }
          }
  
          return -1;
      }
code: public function getFieldNum($fieldName)
      {
          foreach( $this->_fields as $field ) {
              if( $field->name == $fieldName ) {
                  return $field->number;
              }
          }
  
          return -1;
      }
code_tokens: public function getFieldNum ( $ fieldName ) { foreach ( $ this -> _fields as $ field ) { if ( $ field -> name == $ fieldName ) { return $ field -> number ; } } return - 1 ; }
docstring: Returns field index or -1 if field is not found
  
  @param string $fieldName
  @return integer
docstring_tokens: Returns field index or - 1 if field is not found