private function colorizeMminute($minute = '', array $colors = [])
    {
        $cleanedColors = array_filter($colors);

        if (empty($cleanedColors)) {
            return $minute;
        }

        return sprintf('<span class="block-color" style="background-color: %s">%s</span>', current($cleanedColors), $minute);
    }
private function colorizeMminute($minute = '', array $colors = [])
    {
        $cleanedColors = array_filter($colors);

        if (empty($cleanedColors)) {
            return $minute;
        }

        return sprintf('<span class="block-color" style="background-color: %s">%s</span>', current($cleanedColors), $minute);
    }
private function colorizeMminute ( $ minute = '' , array $ colors = [ ] ) { $ cleanedColors = array_filter ( $ colors ) ; if ( empty ( $ cleanedColors ) ) { return $ minute ; } return sprintf ( '<span class="block-color" style="background-color: %s">%s</span>' , current ( $ cleanedColors ) , $ minute ) ; }
Adds background color to the minute string

@param string $minute
@param array $colors
@return String
Adds background color to the minute string