File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ $fieldType = $field->getFieldType();
4545 ) ?>
4646 <?php endif ; ?>
4747 <?php foreach ($ options ->toOptionArray () as $ option ) : ?>
48- <?= $ option ['level ' ] = 0 ; ?>
48+ <?php $ option ['level ' ] = 0 ; ?>
4949 <?= /* @noEscape */ $ templateRenderer ->html (
5050 $ block ,
5151 'Loki_AdminComponents::form/field_type/select/option.phtml ' ,
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ use Loki\Components\Util\Block\TemplateRenderer;
1313$ option = $ block ->getOption ();
1414?>
1515<?php if (is_array ($ option ['value ' ])): ?>
16- <optgroup label="<?= $ escaper ->escapeHtml (str_repeat (' ' , $ option ['level ' ])) ?> <?= $ option ['label ' ] ?> "></optgroup>
16+ <optgroup label="<?= $ escaper ->escapeHtml (str_repeat (' ' , $ option ['level ' ])) ?> <?= $ escaper -> escapeHtml ( $ option ['label ' ]) ?> "></optgroup>
1717 <?php foreach ($ option ['value ' ] as $ suboption ): ?>
18- <?= $ suboption ['level ' ] = $ option ['level ' ] + 1 ; ?>
18+ <?php $ suboption ['level ' ] = $ option ['level ' ] + 1 ; ?>
1919 <?= /* @noEscape */ $ templateRenderer ->html (
2020 $ block ,
2121 'Loki_AdminComponents::form/field_type/select/option.phtml ' ,
@@ -25,6 +25,6 @@ $option = $block->getOption();
2525<?php else : ?>
2626 <option value="<?= $ option ['value ' ] ?> ">
2727 <?= $ escaper ->escapeHtml (str_repeat (' ' , $ option ['level ' ])) ?>
28- <?= $ option ['label ' ] ?>
28+ <?= $ escaper -> escapeHtml ( $ option ['label ' ]) ?>
2929 </option>
3030<?php endif ; ?>
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ $customerViewModel = $viewModelFactory->create(Customer::class);
1515$ customerId = (int )$ block ->getValue ();
1616$ customer = $ customerViewModel ->getById ($ customerId );
1717?>
18- <span><?= $ escaper ->escapeHtml ($ customerId ) ?> (<?= $ customer ?->getEmail() ?> )</span>
18+ <span><?= $ escaper ->escapeHtml ($ customerId ) ?> (<?= $ escaper -> escapeHtml ( $ customer ?->getEmail() ) ?> )</span>
You can’t perform that action at this time.
0 commit comments