Skip to content

Commit

Permalink
Fix code quality issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Jun 20, 2023
1 parent cdf4416 commit 2137846
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion modules/backend/formwidgets/repeater/partials/_repeater.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<?= $maxItems ? 'data-max-items="'.$maxItems.'"' : '' ?>
<?= $style ? 'data-style="'.$style.'"' : '' ?>
data-mode="<?= $mode ?>"
<?php if ($mode === 'grid'): ?> data-columns="<?= $columns ?>" <?php endif ?>
<?php if ($mode === 'grid'): ?>
data-columns="<?= $columns ?>"
<?php endif ?>
<?php if ($sortable): ?>
data-sortable="true"
data-sortable-container="#<?= $this->getId('items') ?>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<li
id="<?= $this->getId('add-item') ?>"
class="field-repeater-add-item loading-indicator-container indicator-center"
<?php if ($mode === 'grid'): ?>style="min-height: <?= $rowHeight ?>px"<?php endif ?>
<?php if ($mode === 'grid'): ?>
style="min-height: <?= $rowHeight ?>px"
<?php endif ?>
>
<?php if ($useGroups): ?>
<a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<li
<?= $itemTitle ? 'data-collapse-title="'.e(trans($itemTitle)).'"' : '' ?>
class="field-repeater-item"
<?php if ($mode === 'grid'): ?>style="min-height: <?= $rowHeight ?>px"<?php endif ?>
<?php if ($mode === 'grid'): ?>
style="min-height: <?= $rowHeight ?>px"
<?php endif ?>
>

<?php if (!$this->previewMode): ?>
Expand Down

0 comments on commit 2137846

Please sign in to comment.