aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/logs_pagination.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-05-11 13:02:04 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-11 13:02:04 +0200
commit6e2f2f1c1e98ecd86aa89c6547beb742d7385d18 (patch)
tree7ba9f5aebb01d12045b9067a86b5060ba13dca18 /app/views/helpers/logs_pagination.phtml
parentfe7d9bbcd68660a59b813346c236b61b25a51c80 (diff)
A few additional PHPStan rules (#5388)
A subset of https://github.com/phpstan/phpstan-strict-rules
Diffstat (limited to 'app/views/helpers/logs_pagination.phtml')
-rwxr-xr-xapp/views/helpers/logs_pagination.phtml12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/helpers/logs_pagination.phtml b/app/views/helpers/logs_pagination.phtml
index c7b9ca0ca..c9f18dc07 100755
--- a/app/views/helpers/logs_pagination.phtml
+++ b/app/views/helpers/logs_pagination.phtml
@@ -18,13 +18,13 @@
<?php $params[$getteur] = $this->currentPage - 1; ?>
-
+
<li class="item pager-previous">
<?php if ($this->currentPage > 1) { ?>
<a href="<?= Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)) ?>">‹ <?= _t('conf.logs.pagination.previous') ?></a>
<?php } ?>
</li>
-
+
<?php if ($this->currentPage - 2 > 1) { ?>
<li class="item">…</a></li>
@@ -32,7 +32,7 @@
<?php
for ($i = $this->currentPage - 2; $i <= $this->currentPage + 2; $i++) {
- if($i > 0 && $i <= $this->nbPage) {
+ if ($i > 0 && $i <= $this->nbPage) {
$params[$getteur] = $i;
if ($i != $this->currentPage) {
$class = '';
@@ -46,18 +46,18 @@
}
} ?>
- <?php if ($this->nbPage > $i - 1) { ?>
+ <?php if ($this->nbPage > $this->currentPage + 2) { ?>
<li class="item">…</a></li>
<?php } ?>
<?php $params[$getteur] = $this->currentPage + 1; ?>
-
+
<li class="item pager-next">
<?php if ($this->currentPage < $this->nbPage) { ?>
<a href="<?= Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)) ?>"><?= _t('conf.logs.pagination.next') ?> ›</a>
<?php } ?>
</li>
-
+
<?php $params[$getteur] = $this->nbPage; ?>
<li class="item pager-last">
<a href="<?= Minz_Url::display(array('c' => $c, 'a' => $a, 'params' => $params)) ?>"><?= _t('conf.logs.pagination.last') ?> »</a>