Debug_Bar_Pretty_Output::get_pretty_resource PHP Method

get_pretty_resource() private static method

Convert a resource to pretty output.
private static get_pretty_resource ( resource $resource, boolean $short = false ) : string
$resource resource The resource to make pretty.
$short boolean Short or normal annotation.
return string
        private static function get_pretty_resource($resource, $short = false)
        {
            $output = '<span style="color: #666666;">';
            if (true !== $short) {
                $output .= '<b><i>resource</i></b> : ';
            }
            $output .= $resource;
            if (true !== $short) {
                $output .= ' ( = <i>RESOURCE</i> )';
            }
            $output .= '</span><br />';
            return $output;
        }