Code cleanup as suggested by the codacy service.

- Renamed get_service_details to populate_impacted_services
- Removed unused variables
This commit is contained in:
thnilsen
2018-12-07 22:46:16 +01:00
parent 7ee0aa3540
commit 62e6f08e4f
3 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -168,7 +168,7 @@ class Incident implements JsonSerializable
// Perform notification to subscribers
$notify = new Notification();
$notify->get_service_details($status_id);
$notify->populate_impacted_services($status_id);
$notify->type = $type;
$notify->time = $time;
@@ -210,7 +210,7 @@ class Incident implements JsonSerializable
<div class="panel-footer clearfix">
<small>
<?php echo _("Impacted service(s): ");
foreach ( $this->service_name as $key => $value ) {
foreach ( $this->service_name as $value ) {
echo '<span class="label label-default">'.$value . '</span>&nbsp;';
}