Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bdsl committed Nov 26, 2022
1 parent 8b89fa1 commit 88331ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Psalm/Report/ByIssueSeverityReport.php
Expand Up @@ -33,6 +33,9 @@ public function create(): string
return $output;
}

/**
* Copied from ConsoleReport with only very minor changes. Todo consider reducing code duplication
*/
private function format(IssueData $issue_data): string
{
$issue_string = '';
Expand Down Expand Up @@ -82,6 +85,7 @@ private function format(IssueData $issue_data): string
}

/**
* 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
Expand Down

0 comments on commit 88331ba

Please sign in to comment.