Skip to content

Commit df71c29

Browse files
committed
MAGETWO-92010: Jenkins - Static Test Failures
- Tag GoogleMapsApiBlock as @api - Fix reference to JSON result and too long line in ValidateApi
1 parent 5683cdc commit df71c29

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/code/Magento/PageBuilder/Block/GoogleMapsApiBlock.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Magento\PageBuilder\Block;
99

10+
/**
11+
* @api
12+
*/
1013
class GoogleMapsApiBlock extends \Magento\Framework\View\Element\Template
1114
{
1215
const GOOGLE_MAPS_API_KEY_PATH = 'cms/pagebuilder/google_maps_api_key';

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ public function __construct(
3535
/**
3636
* Send test request to Google Maps and return response
3737
*
38-
* @return Json
38+
* @return \Magento\Framework\Controller\Result\Json
3939
*/
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+
$validationResult = $this->apiKeyValidator->validate($apiKey);
44+
return $this->resultFactory->create(ResultFactory::TYPE_JSON)->setData($validationResult);
4445
}
4546
}

0 commit comments

Comments
 (0)