
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com>
10 lines
180 B
Plaintext
10 lines
180 B
Plaintext
[source,php]
|
|
----
|
|
function get_readable_status($is_running, $has_errors) {
|
|
if ($is_running) {
|
|
return "Running";
|
|
}
|
|
return $has_errors ? "Failure. " : "Succeeded ";
|
|
}
|
|
----
|