Skip to content

Commit e172c83

Browse files
committed
Introduce more meaningful property name
1 parent 8083b97 commit e172c83

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Captcha/Controller/Refresh

1 file changed

+3
-3
lines changed

app/code/Magento/Captcha/Controller/Refresh/Index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Index implements HttpPostActionInterface
4141
/**
4242
* @var JsonResultFactory
4343
*/
44-
private $jsonFactory;
44+
private $jsonResultFactory;
4545

4646
/**
4747
* @param RequestInterface $request
@@ -58,7 +58,7 @@ public function __construct(
5858
JsonSerializer $serializer
5959
) {
6060
$this->request = $request;
61-
$this->jsonFactory = $jsonFactory;
61+
$this->jsonResultFactory = $jsonFactory;
6262
$this->captchaHelper = $captchaHelper;
6363
$this->layout = $layout;
6464
$this->serializer = $serializer;
@@ -84,6 +84,6 @@ public function execute()
8484
$block = $this->layout->createBlock($captchaModel->getBlockName());
8585
$block->setFormId($formId)->setIsAjax(true)->toHtml();
8686

87-
return $this->jsonFactory->create(['imgSrc' => $captchaModel->getImgSrc()]);
87+
return $this->jsonResultFactory->create(['imgSrc' => $captchaModel->getImgSrc()]);
8888
}
8989
}

0 commit comments

Comments
 (0)