1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Add comments

This commit is contained in:
Barney Laurance 2022-11-26 22:36:04 +00:00
parent 6bde0d3a68
commit 32881a3c65

View File

@ -33,6 +33,9 @@ final class ByIssueSeverityReport extends Report
return $output;
}
/**
* Copied from ConsoleReport with only very minor changes. Todo consider reducing code duplication
*/
private function format(IssueData $issue_data): string
{
$issue_string = '';
@ -82,6 +85,7 @@ final class ByIssueSeverityReport extends Report
}
/**
* Copied from ConsoleReport unchanged. Todo consider reducing code duplication
* @param non-empty-list<DataFlowNodeData|array{label: string, entry_path_type: string}> $taint_trace
*/
private function getTaintSnippets(array $taint_trace): string