From b8401685bb8927e71177f66bba358416c9cda3f9 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 8 Jun 2020 22:43:28 +0200 Subject: [PATCH] make type hints easier to read --- Theme/Backend/help-module-list.tpl.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Theme/Backend/help-module-list.tpl.php b/Theme/Backend/help-module-list.tpl.php index ecbd6a2..6d8bc98 100644 --- a/Theme/Backend/help-module-list.tpl.php +++ b/Theme/Backend/help-module-list.tpl.php @@ -12,11 +12,16 @@ */ declare(strict_types=1); +use phpOMS\Uri\UriFactory; + /** - * @var \phpOMS\Views\View $this + * @var \phpOMS\Views\View $this * @var \phpOMS\Module\ModuleInfo[] $modules */ $modules = $this->getData('modules'); + +$previous = empty($modules) ? '{/prefix}help/module/list' : '{/prefix}help/module/list?{?}&id=' . \reset($modules)->getId() . '&ptype=-'; +$next = empty($modules) ? '{/prefix}help/module/list' : '{/prefix}help/module/list?{?}&id=' . \end($modules)->getId() . '&ptype=+'; ?>
@@ -36,7 +41,7 @@ $modules = $this->getData('modules'); } ++$count; - $url = \phpOMS\Uri\UriFactory::build( + $url = UriFactory::build( '{/lang}/backend/help/module/single?id={$module}', ['$module' => $module->getInternalName()] ); @@ -48,7 +53,10 @@ $modules = $this->getData('modules'); getHtml('Empty', '0', '0'); ?> -
+
\ No newline at end of file