mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-72969' of https://github.com/paulholden/moodle
This commit is contained in:
commit
e6cd902af8
@ -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 ',
|
||||
|
Loading…
x
Reference in New Issue
Block a user