We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36e9518 commit 84c6018Copy full SHA for 84c6018
1 file changed
src/Measurements.php
@@ -59,7 +59,7 @@ public function addFile(string $filename): void
59
{
60
$this->directoryNames[] = dirname($filename);
61
62
- $relativeFilePath = str_replace(getcwd() . '/', '', $filename);
+ $relativeFilePath = str_replace(getcwd() . PHP_EOL, '', $filename);
63
$this->filesToSize[$relativeFilePath] = substr_count((string) file_get_contents($filename), "\n") + 1;
64
65
++$this->fileCount;
0 commit comments