Skip to content

Commit e6ba1d9

Browse files
authored
Merge pull request PrestaShop#38014 from jmartin82/patch-rename
Rename `emailField` to `field` for aligning the variable name with its actual purpose
2 parents 2f2c20c + b40f5bc commit e6ba1d9

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)