Skip to content

Commit

Permalink
Correct use of $block and imported usages
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenBoersma committed Mar 3, 2023
1 parent 4319014 commit df71c1f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/view/frontend/templates/script/rumvision.phtml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<?php

/** @var Template $block */
/** @var Escaper $escaper */
/** @var Rumvision $viewModel */

use Elgentos\Rumvision\ViewModel\Rumvision;
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;

$viewModel = $this->getData('rumvision_view_model');

if (!$viewModel->shouldIncludeScript()) {
/** @var Rumvision $viewModel */
$viewModel = $block->getData('rumvision_view_model');
if (! $viewModel->shouldIncludeScript()) {
return;
}
?>
Expand Down

0 comments on commit df71c1f

Please sign in to comment.