LibreNMS/Util/Color.php
Method percentage
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function percentage($percentage, $component_perc_warn = null): array
{
$perc_warn = 75;
if (isset($component_perc_warn)) {
Avoid too many return
statements within this method. Open
Open
return '#008000';
Avoid too many return
statements within this method. Open
Open
return [
'left' => '9abf5b',
'right' => 'bbd392',
'middle' => 'afcc7c',
];