From 5dbf7982ced5c17f741df83a4e9dc9529b0dca92 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 15 Mar 2014 13:22:37 +0000 Subject: [PATCH] Can now check o multiple bug files Only attempt to get filesize if file exists Checking for bugs now in for loop to get bugs for each file specified, counting the number of files with new bugs also Output with a heading containing the filename (path) also If it's our first bug file found, write to it to overwrite what was there before, if it's a subsequent file, append to the file Remove commented values --- lib/bug-files-check.php | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/lib/bug-files-check.php b/lib/bug-files-check.php index 0097138..4e21078 100644 --- a/lib/bug-files-check.php +++ b/lib/bug-files-check.php @@ -10,20 +10,25 @@ $result = "ok"; for ($i=0; $i $files, "filesSizesSeen" => $filesSizesSeen, "maxLines" => $maxLines, -// "chars" => (isset($chars) ? $chars : null), -// "lines" => substr_count($output, "\n"), -// "seek" => (isset($seek) ? $seek : null), "bugReportPath" => "|".$tmpLoc."|tmp|bug-report.log", "result" => $result );