Skip to content

Commit 270c1b6

Browse files
author
Mark Berube
committed
MC-20144: Validating Wysiwyg directives
- Adding requested changes from PHPStan
1 parent 103bc27 commit 270c1b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Ui/Controller/Index/Render.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public function __construct(
8888

8989
/**
9090
* @inheritdoc
91-
* phpstan:ignore "Method Magento\Ui\Controller\Index\Render::execute() should return *"
9291
*/
9392
public function execute()
9493
{
@@ -106,6 +105,8 @@ public function execute()
106105

107106
$contentType = $this->contentTypeResolver->resolve($component->getContext());
108107
$this->getResponse()->setHeader('Content-Type', $contentType, true);
108+
109+
return;
109110
} else {
110111
/** @var \Magento\Framework\Controller\Result\Json $resultJson */
111112
$resultJson = $this->resultJsonFactory->create();

0 commit comments

Comments
 (0)