Skip to content

Commit f6d8e7f

Browse files
author
Michael Yu
committed
MAGETWO-91961: architecture resolve feedback
- Fixed camel casing in constructor function
1 parent e0a1651 commit f6d8e7f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/PageBuilder/Component/GoogleMapsApiKeyValidationContainer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct(
5757
);
5858
$this->url = $url;
5959
$this->scopeConfig = $scopeConfig;
60-
$this->ApiKeyValidator = $apiKeyValidator;
60+
$this->apiKeyValidator = $apiKeyValidator;
6161
}
6262

6363
/**
@@ -70,7 +70,7 @@ public function prepare()
7070
parent::prepare();
7171
$config = $this->getData('config');
7272
$apiKey = $this->scopeConfig->getValue(self::GOOGLE_MAPS_API_KEY_PATH) ?: "";
73-
$response = $this->ApiKeyValidator->validate($apiKey);
73+
$response = $this->apiKeyValidator->validate($apiKey);
7474
if (!$response['success']) {
7575
$config['visible'] = true;
7676
}

app/code/Magento/PageBuilder/Controller/Adminhtml/GoogleMaps/ValidateApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(
2929
\Magento\PageBuilder\Model\GoogleMaps\ApiKeyValidator $apiKeyValidator
3030
) {
3131
parent::__construct($context);
32-
$this->ApiKeyValidator = $apiKeyValidator;
32+
$this->apiKeyValidator = $apiKeyValidator;
3333
}
3434

3535
/**
@@ -40,6 +40,6 @@ public function __construct(
4040
public function execute()
4141
{
4242
$apiKey = $this->getRequest()->getParam('key');
43-
return $this->resultFactory->create(ResultFactory::TYPE_JSON)->setData($this->ApiKeyValidator->validate($apiKey));
43+
return $this->resultFactory->create(ResultFactory::TYPE_JSON)->setData($this->apiKeyValidator->validate($apiKey));
4444
}
4545
}

0 commit comments

Comments
 (0)