Skip to content

Commit

Permalink
ENGCOM-4260: Correct spelling #21210
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Feb 18, 2019
2 parents 1bc4061 + e47eb6b commit bdc715f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __get($name)
}

/**
* Checks for the existance of a property stored in the private $_attributes property
* Checks for the existence of a property stored in the private $_attributes property
*
* @ignore
* @param string $name
Expand Down
6 changes: 5 additions & 1 deletion app/code/Magento/Captcha/Observer/CheckUserLoginObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Captcha\Observer;

use Magento\Customer\Model\AuthenticationInterface;
Expand All @@ -11,7 +12,10 @@
use Magento\Customer\Api\CustomerRepositoryInterface;

/**
* Check captcha on user login page observer.
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
*/
class CheckUserLoginObserver implements ObserverInterface
{
Expand Down Expand Up @@ -140,7 +144,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
$customer = $this->getCustomerRepository()->get($login);
$this->getAuthentication()->processAuthenticationFailure($customer->getId());
} catch (NoSuchEntityException $e) {
//do nothing as customer existance is validated later in authenticate method
//do nothing as customer existence is validated later in authenticate method
}
$this->messageManager->addError(__('Incorrect CAPTCHA'));
$this->_actionFlag->set('', \Magento\Framework\App\Action\Action::FLAG_NO_DISPATCH, true);
Expand Down

0 comments on commit bdc715f

Please sign in to comment.