Skip to content

Commit df71c1f

Browse files
committed
Correct use of $block and imported usages
1 parent 4319014 commit df71c1f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/view/frontend/templates/script/rumvision.phtml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
22

3+
/** @var Template $block */
34
/** @var Escaper $escaper */
4-
/** @var Rumvision $viewModel */
55

66
use Elgentos\Rumvision\ViewModel\Rumvision;
7+
use Magento\Framework\Escaper;
8+
use Magento\Framework\View\Element\Template;
79

8-
$viewModel = $this->getData('rumvision_view_model');
9-
10-
if (!$viewModel->shouldIncludeScript()) {
10+
/** @var Rumvision $viewModel */
11+
$viewModel = $block->getData('rumvision_view_model');
12+
if (! $viewModel->shouldIncludeScript()) {
1113
return;
1214
}
1315
?>

0 commit comments

Comments
 (0)