diff --git a/classes/reporter.php b/classes/reporter.php index c2a91fb..2d1ef57 100644 --- a/classes/reporter.php +++ b/classes/reporter.php @@ -73,9 +73,9 @@ public function __construct($projectPath, $reportFolder = null) { if ($reportFolder !== false) { $this->reportFolder = $reportFolder; } else { - $this->reportFolder = PHP7MAR_DIR.DIRECTORY_SEPARATOR.'reports'.DIRECTORY_SEPARATOR; + $this->reportFolder = PHP7MAR_DIR.DIRECTORY_SEPARATOR.'reports'; } - $this->fullFilePath = $this->reportFolder.date('Y-m-d H.i.s ').basename($this->projectPath, '.php').".md"; + $this->fullFilePath = $this->reportFolder.DIRECTORY_SEPARATOR.date('Y-m-d H.i.s ').basename($this->projectPath, '.php').".md"; $this->file = fopen($this->fullFilePath, 'w+'); register_shutdown_function([$this, 'onShutdown']); @@ -161,4 +161,4 @@ public function onShutdown() { fclose($this->file); } } -?> \ No newline at end of file +?>