Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #14 from brichter89/patch-1
Browse files Browse the repository at this point in the history
Fixed: Missing '/' in manually set report path
  • Loading branch information
Alexia committed Apr 26, 2016
2 parents e1a9178 + 23558bd commit 57b6403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/reporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down Expand Up @@ -161,4 +161,4 @@ public function onShutdown() {
fclose($this->file);
}
}
?>
?>

0 comments on commit 57b6403

Please sign in to comment.