Debug_Bar_Pretty_Output::get_pretty_int PHP Метод

get_pretty_int() приватный статический Метод

Convert an integer to pretty output.
private static get_pretty_int ( integer $int, boolean $short = false ) : string
$int integer The integer to make pretty.
$short boolean Short or normal annotation.
Результат string
        private static function get_pretty_int($int, $short = false)
        {
            $output = '<span style="color: #FF0000;">';
            if (true !== $short) {
                $output .= '<b><i>int</i></b> : ';
            }
            if (0 === $int) {
                $output .= '<b>' . $int . '</b>';
            } else {
                $output .= $int;
            }
            $output .= "</span><br />\n";
            return $output;
        }