Skip to content

Commit

Permalink
[GT-187] Add comment to give insight on variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sae126V committed Aug 31, 2023
1 parent 294ebd1 commit 2fce820
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions htdocs/web_portal/controllers/downtime/downtime_utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 2fce820

Please sign in to comment.