From 2fce820b84488cbc2ba64ea363c122c25f05a2b7 Mon Sep 17 00:00:00 2001 From: Sae126V Date: Thu, 31 Aug 2023 15:24:46 +0000 Subject: [PATCH] [GT-187] Add comment to give insight on variables. --- htdocs/web_portal/controllers/downtime/downtime_utils.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/web_portal/controllers/downtime/downtime_utils.php b/htdocs/web_portal/controllers/downtime/downtime_utils.php index 9701a9945..b85cce426 100644 --- a/htdocs/web_portal/controllers/downtime/downtime_utils.php +++ b/htdocs/web_portal/controllers/downtime/downtime_utils.php @@ -44,6 +44,12 @@ function endpointToServiceMapping($impactedIDs) * sort between endpoints and services using the prepended letter. */ foreach ($impactedIDs as $id) { + /** + * `$siteNumber` => It's about Site ID + * `$parentService` => It's about service ID endpoint belongs too + * `idType` => It's about to differentiate + * the endpoint vs service selection. + */ list($siteNumber, $parentService, $idType) = explode(':', $id); $type = strpos($idType, 's') !== false ? 'services' : 'endpoints';