This commit is contained in:
Víctor Déniz 2021-11-05 01:18:06 +00:00
commit e6cd902af8

View File

@ -4923,17 +4923,17 @@ class core_renderer_cli extends core_renderer {
* To aid in CLI consistency this status is NOT translated and the visual
* width is always exactly 10 chars.
*
* @param result $result
* @param core\check\result $result
* @return string HTML fragment
*/
protected function render_check_result(core\check\result $result) {
$status = $result->get_status();
$labels = [
core\check\result::NA => ' ' . cli_ansi_format('<colour:gray>' ) . ' NA ',
core\check\result::NA => ' ' . cli_ansi_format('<colour:darkGray>' ) . ' NA ',
core\check\result::OK => ' ' . cli_ansi_format('<colour:green>') . ' OK ',
core\check\result::INFO => ' ' . cli_ansi_format('<colour:blue>' ) . ' INFO ',
core\check\result::UNKNOWN => ' ' . cli_ansi_format('<colour:grey>' ) . ' UNKNOWN ',
core\check\result::UNKNOWN => ' ' . cli_ansi_format('<colour:darkGray>' ) . ' UNKNOWN ',
core\check\result::WARNING => ' ' . cli_ansi_format('<colour:black><bgcolour:yellow>') . ' WARNING ',
core\check\result::ERROR => ' ' . cli_ansi_format('<bgcolour:red>') . ' ERROR ',
core\check\result::CRITICAL => '' . cli_ansi_format('<bgcolour:red>') . ' CRITICAL ',