Skip to content

Commit b40f5bc

Browse files
authored
Rename emailField to field for aligning the variable name with its actual purpose
1 parent 2f2c20c commit b40f5bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

classes/form/CustomerForm.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ protected function validateFieldsLengths()
206206
*/
207207
protected function validateFieldLength($fieldName, $maximumLength, $violationMessage)
208208
{
209-
$emailField = $this->getField($fieldName);
210-
if (strlen($emailField->getValue()) > $maximumLength) {
211-
$emailField->addError($violationMessage);
209+
$field = $this->getField($fieldName);
210+
if (strlen($field->getValue()) > $maximumLength) {
211+
$field->addError($violationMessage);
212212
}
213213
}
214214

0 commit comments

Comments
 (0)