From 1273c9e879265325e5d63c957a9272fb53f78347 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Fri, 31 Jul 2020 17:20:30 -0400 Subject: [PATCH] [NFC] oncall cleanup --- oncall.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oncall.php b/oncall.php index 348ac15..11d4e79 100644 --- a/oncall.php +++ b/oncall.php @@ -4,6 +4,7 @@ declare(strict_types = 1); require_once 'vendor/autoload.php'; use Yasumi\Holiday; + /* On Call Ticket Notification Script */ $oncall = new oncall(); $oncall->dateAndTimeCheck(); @@ -17,8 +18,6 @@ if ($table) { $oncall->sendToMattermost($table); } -//email($item, $contact); - /** * The class that does all the magic. */ @@ -82,6 +81,7 @@ class oncall { $this->baseUrl = getenv('REDMINE_URL'); $this->apiKey = getenv('KEY'); + // FIXME: Not using $this->apiKey. $this->queries = [ 'New Support Tickets' => 'https://hq.megaphonetech.com/issues.json?query_id=17&key=7ebe204bef5804f4effb9b4160a295487dde15f1', 'New Maintenance Tickets' => 'https://hq.megaphonetech.com/issues.json?query_id=18&key=7ebe204bef5804f4effb9b4160a295487dde15f1',