Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

Commit 7aeeea6

Browse files
committed
Fixed output location of log
1 parent e8ac862 commit 7aeeea6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Command/MessDetector.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
6666
/**
6767
* @todo Make PR for this
6868
*/
69-
protected function format($file)
69+
protected function format($output)
7070
{
71-
$file = @file_get_contents("phpmd.log") ;
72-
$file = str_replace(PHP_EOL, " \033[0m ".PHP_EOL, $file);
73-
$file = str_replace(realpath(__DIR__."/..")."/", '', $file);
74-
$file = str_replace("\t", " \033[1;31m " . PHP_EOL, $file);
75-
return str_replace(". ", ".".PHP_EOL, $file);
71+
$output = str_replace(PHP_EOL, " \033[0m ".PHP_EOL, $output);
72+
$output = str_replace(realpath(__DIR__."/..")."/", '', $output);
73+
$output = str_replace("\t", " \033[1;31m " . PHP_EOL, $output);
74+
return str_replace(". ", ".".PHP_EOL, $output);
7675
}
7776

7877
protected function getSource()

0 commit comments

Comments
 (0)