Skip to content

Commit dd8f43c

Browse files
committed
Add composer.json and formatted files
1 parent e2dc6b8 commit dd8f43c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/code/Magento/Config/Model/Config/Backend/Email/Address.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class Address extends \Magento\Framework\App\Config\Value
2020
public function beforeSave()
2121
{
2222
$value = $this->getValue();
23-
$validator = new \Zend\Validator\EmailAddress();
24-
if(!$validator->isValid($value)){
23+
$validator = new \Zend\Validator\EmailAddress();
24+
if (!$validator->isValid($value)) {
2525
throw new LocalizedException(__('Please correct the email address: "%1".', $value));
2626
}
2727
return $this;

app/code/Magento/Customer/Controller/Account/ForgotPasswordPost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function execute()
6161
$email = (string)$this->getRequest()->getPost('email');
6262
if ($email) {
6363
$validator = new \Zend\Validator\EmailAddress();
64-
if(!$validator->isValid($email)){
64+
if (!$validator->isValid($email)) {
6565
$this->session->setForgottenEmail($email);
6666
$this->messageManager->addErrorMessage(__('Please correct the email address.'));
6767
return $resultRedirect->setPath('*/*/forgotpassword');

app/code/Magento/CustomerImportExport/Model/Import/AbstractCustomer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ protected function _checkUniqueKey(array $rowData, $rowNumber)
233233
$email = strtolower($rowData[static::COLUMN_EMAIL]);
234234
$website = $rowData[static::COLUMN_WEBSITE];
235235
$validator = new \Zend\Validator\EmailAddress();
236-
if(!$validator->isValid($email)){
236+
if (!$validator->isValid($email)) {
237237
$this->addRowError(static::ERROR_INVALID_EMAIL, $rowNumber, static::COLUMN_EMAIL);
238238
} elseif (!isset($this->_websiteCodeToId[$website])) {
239239
$this->addRowError(static::ERROR_INVALID_WEBSITE, $rowNumber, static::COLUMN_WEBSITE);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"zendframework/zend-server": "~2.4.6",
1515
"zendframework/zend-soap": "~2.4.6",
1616
"zendframework/zend-uri": "~2.4.6",
17-
"zendframework/zend-validator": "~2.4.6",
17+
"zendframework/zend-validator": "^2.6.0",
1818
"zendframework/zend-crypt": "~2.4.6",
1919
"zendframework/zend-console": "~2.4.6",
2020
"zendframework/zend-modulemanager": "~2.4.6",

0 commit comments

Comments
 (0)