From 9f489d8a5970ad7962d4a96fc0836a3d7e79eb83 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 2 Oct 2018 14:22:46 +0200 Subject: [PATCH] cleanup code --- application/dashboardlayout.class.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/application/dashboardlayout.class.inc.php b/application/dashboardlayout.class.inc.php index 5b08238a3..f1f2002e2 100644 --- a/application/dashboardlayout.class.inc.php +++ b/application/dashboardlayout.class.inc.php @@ -59,6 +59,7 @@ abstract class DashboardLayoutMultiCol extends DashboardLayout $bNoVisibleFound = true; while($idx < count($aKeys) && $bNoVisibleFound) { + /** @var \Dashlet $oDashlet */ $oDashlet = $aDashlets[$aKeys[$idx]]; if ($oDashlet->IsVisible()) { @@ -98,7 +99,13 @@ abstract class DashboardLayoutMultiCol extends DashboardLayout return $aCells; } - + + /** + * @param \WebPage $oPage + * @param $aCells + * @param bool $bEditMode + * @param array $aExtraParams + */ public function Render($oPage, $aCells, $bEditMode = false, $aExtraParams = array()) { // Trim the list of cells to remove the invisible/empty ones at the end of the array @@ -122,6 +129,7 @@ abstract class DashboardLayoutMultiCol extends DashboardLayout $aDashlets = $aCells[$iCellIdx]; if (count($aDashlets) > 0) { + /** @var \Dashlet $oDashlet */ foreach($aDashlets as $oDashlet) { if ($oDashlet->IsVisible())