mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
Use hsprintf() in lint message
Test Plan: Display revision with lint problems Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1578
This commit is contained in:
parent
e8a7d8a905
commit
4ee714d404
1 changed files with 10 additions and 10 deletions
|
@ -65,17 +65,17 @@ final class DifferentialLintFieldSpecification
|
|||
),
|
||||
$line_link);
|
||||
}
|
||||
$message_markup[] =
|
||||
$message_markup[] = hsprintf(
|
||||
'<li>'.
|
||||
'<span class="lint-severity-'.phutil_escape_html($severity).'">'.
|
||||
phutil_escape_html(ucwords($severity)).
|
||||
'</span>'.
|
||||
' '.
|
||||
'('.phutil_escape_html($code).') '.
|
||||
phutil_escape_html($name).
|
||||
' at line '.$line_link.
|
||||
'<p>'.phutil_escape_html($description).'</p>'.
|
||||
'</li>';
|
||||
'<span class="lint-severity-%s">%s</span> (%s) %s '.
|
||||
'at line '.$line_link.
|
||||
'<p>%s</p>'.
|
||||
'</li>',
|
||||
$severity,
|
||||
ucwords($severity),
|
||||
$code,
|
||||
$name,
|
||||
$description);
|
||||
}
|
||||
$lint_messages[] =
|
||||
'<li class="lint-file-block">'.
|
||||
|
|
Loading…
Reference in a new issue