src/Validation.php
protected function formatFieldName(string $field): string {
        if ($this->getTranslateFieldNames()) {
            return $this->translate($field);
        } else {
            return $field;
        }
    }
protected function formatFieldName(string $field): string {
        if ($this->getTranslateFieldNames()) {
            return $this->translate($field);
        } else {
            return $field;
        }
    }
protected function formatFieldName ( string $ field ) : string { if ( $ this -> getTranslateFieldNames ( ) ) { return $ this -> translate ( $ field ) ; } else { return $ field ; } }
Format the name of a field.

@param string $field The field name to format.
@return string Returns the formatted field name.
Format the name of a field .