From 234de45ab2dc16672a0272439113f1de26d65d15 Mon Sep 17 00:00:00 2001 From: itismadness Date: Mon, 8 Jul 2019 05:34:11 +0545 Subject: [PATCH] Subtract 20 points for logs that do not have accurate stream set to yes --- src/Logchecker.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Logchecker.php b/src/Logchecker.php index 9665f91..758ba54 100644 --- a/src/Logchecker.php +++ b/src/Logchecker.php @@ -1154,18 +1154,20 @@ class Logchecker { function accurate_stream($Matches) { if ($Matches[2] == 'Yes') { - $Class = 'goodish'; + $Class = 'good'; } else { - $Class = 'badish'; + $Class = 'bad'; + $this->account('"Utilize accurate stream" should be yes', 20); } return 'Utilize accurate stream' . $Matches[1] . ': ' . $Matches[2] . ''; } function accurate_stream_eac_pre99($Matches) { if (strtolower($Matches[1]) != 'no ') { - $Class = 'goodish'; + $Class = 'good'; } else { - $Class = 'badish'; + $Class = 'bad'; + $this->account('"accurate stream" should be yes', 20); } return ', ' . $Matches[1] . 'accurate stream'; }