Whoops\Util\TemplateHelper::dumpArgs PHP Method

dumpArgs() public method

Format the args of the given Frame as a human readable html string
public dumpArgs ( Whoops\Exception\Frame $frame ) : string
$frame Whoops\Exception\Frame
return string the rendered html
    public function dumpArgs(Frame $frame)
    {
        // we support frame args only when the optional dumper is available
        if (!$this->getDumper()) {
            return '';
        }
        $html = '';
        $numFrames = count($frame->getArgs());
        if ($numFrames > 0) {
            $html = '<ol class="linenums">';
            foreach ($frame->getArgs() as $j => $frameArg) {
                $html .= '<li>' . $this->dump($frameArg) . '</li>';
            }
            $html .= '</ol>';
        }
        return $html;
    }