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

Commit

Permalink
[CodeClimate] PHPSA print each issue on each line in json
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Oct 8, 2016
1 parent e719289 commit 156388f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/codeclimate/phpsa
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ try {
die(1);
}

echo json_encode($console->getIssuesCollector()->getIssues(), JSON_PRETTY_PRINT);
$issues = $console->getIssuesCollector()->getIssues();
if ($issues) {
foreach ($issues as $issue) {
echo json_encode($issue->toArray(), JSON_PRETTY_PRINT) . PHP_EOL;
}
}

0 comments on commit 156388f

Please sign in to comment.