From b84885694c77a87809217cc96317c832b47e6502 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Thu, 29 Aug 2024 14:27:59 +0200 Subject: [PATCH] projectlist.class: php8 only; added variable types; short array syntax --- .../deployment/classes/projectlist.class.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/public_html/deployment/classes/projectlist.class.php b/public_html/deployment/classes/projectlist.class.php index 17cca383..e2e1d0f4 100644 --- a/public_html/deployment/classes/projectlist.class.php +++ b/public_html/deployment/classes/projectlist.class.php @@ -7,7 +7,9 @@ class projectlist to render overview page --------------------------------------------------------------------- - 2013-11-08 Axel <axel.hahn@iml.unibe.ch> + Axel <axel.hahn@unibe.ch> + 2013-11-08 Axel + 2024-08-28 Axel php8 only; added variable types; short array syntax ###################################################################### */ require_once 'base.class.php'; @@ -50,7 +52,7 @@ class projectlist extends base * render html for overview table * @return string */ - public function renderOverview() + public function renderOverview(): string { global $renderAdminLTE; @@ -153,26 +155,26 @@ class projectlist extends base <td class="prj"> <span class="float-right"><i class="fa-solid fa-tag"></i> ' . $sPrjGroup . '</span> <strong>' - . $oHtml->getLink(array( + . $oHtml->getLink([ 'href' => '/deployment/' . $sPrj . '/', // 'title' => $oPrj->getDescription(), 'icon' => 'project', 'label' => $oPrj->getLabel() - )) + ]) . '</strong>' . '<div class="descr">' . $oPrj->getDescription() . '</div>' . ($sProgress ? '<div class="deployprogress">' . $sProgress . '</div>' : '') // . ' <br>' . '</td>' . '<td class="prj">' - . $oHtml->getLinkButton(array( + . $oHtml->getLinkButton([ 'href' => '#', 'onclick' => 'setProjectFilter(\'' . $sPrj . '\'); return false;', 'style' => 'float: right', 'title' => t("overview-filter-hint"), 'icon' => 'filter', 'label' => t("overview-filter"), - )) + ]) . '</td>' . '<td class="prj">'; if ($oPrj->canAcceptPhase()) { -- GitLab