CliRenderer
class CliRenderer
Methods
Render a diagnostic fix confirmation as a callout.
Determine whether the diagnostic should be displayed as an issue.
Render an issue diagnostic as a callout.
Get the callout type for an issue, escalating when a fix failed.
Key the failed fixes by the diagnostic that attempted them.
Render diagnostic details, remediation, and links.
Render notice diagnostics as callouts grouped by source.
Group notices by their source.
Format notice content for a callout.
Render diagnostic fixes as callouts grouped by source.
Group fixes by their source.
Format fix content for a callout.
Format a fix outcome's summary and details as a single line.
Get the callout type for the fix outcomes.
Format diagnostic content for a callout.
Format fix confirmation content for a callout.
Details
at line 30
__construct(OutputStyle $output)
Create a new CLI renderer instance.
at line 37
void
render(DiagnosticReport $report)
Render the diagnostic report.
at line 110
void
renderFixConfirmation(DiagnosticOutcome $outcome)
Render a diagnostic fix confirmation as a callout.
at line 123
protected bool
isReportableIssue(DiagnosticOutcome $outcome)
Determine whether the diagnostic should be displayed as an issue.
at line 131
protected void
renderIssue(DiagnosticOutcome $outcome, DiagnosticFixOutcome|null $failedFix = null)
Render an issue diagnostic as a callout.
at line 144
protected string
issueCalloutType(DiagnosticOutcome $outcome, DiagnosticFixOutcome|null $failedFix)
Get the callout type for an issue, escalating when a fix failed.
at line 159
protected array
failedFixesByDiagnostic(array $fixes)
Key the failed fixes by the diagnostic that attempted them.
at line 175
protected void
renderDiagnosticDetails(DiagnosticOutcome $outcome)
Render diagnostic details, remediation, and links.
at line 195
protected void
renderNotices(array $notices)
Render notice diagnostics as callouts grouped by source.
at line 216
protected array
noticesBySource(array $notices)
Group notices by their source.
at line 230
protected array
noticesCalloutContent(array $notices)
Format notice content for a callout.
at line 248
protected string
noticeItem(DiagnosticOutcome $outcome)
Format a notice as a compact list item.
at line 268
protected void
renderFixes(array $fixes)
Render diagnostic fixes as callouts grouped by source.
at line 290
protected array
fixesBySource(array $fixes)
Group fixes by their source.
at line 304
protected array
fixesCalloutContent(array $fixes)
Format fix content for a callout.
at line 319
protected string
fixItem(DiagnosticFixOutcome $outcome)
Format a fix outcome as a compact list item.
at line 327
protected string
fixSummary(DiagnosticFixOutcome $outcome)
Format a fix outcome's summary and details as a single line.
at line 343
protected string|null
fixesCalloutType(array $fixes)
Get the callout type for the fix outcomes.
at line 365
protected array
diagnosticCalloutContent(DiagnosticOutcome $outcome, bool $includeRemediation = true, DiagnosticFixOutcome|null $failedFix = null)
Format diagnostic content for a callout.
at line 396
protected array
fixConfirmationCalloutContent(DiagnosticOutcome $outcome)
Format fix confirmation content for a callout.