src/ProductionHandler.php
private function getFrameArgsOutput(Frame $frame, $line)
    {
        if ($this->addTraceFunctionArgsToOutput() === false
            || $this->addTraceFunctionArgsToOutput() < $line) {
            return '';
        }

        // Dump the arguments:
        ob_start();
        var_dump($frame->getArgs());
        if (ob_get_length() > $this->getTraceFunctionArgsOutputLimit()) {
            // The argument var_dump is to big.
            // Discarded to limit memory usage.
            ob_clean();
            return sprintf(
                "\n%sArguments dump length greater than %d Bytes. Discarded.",
                self::VAR_DUMP_PREFIX,
                $this->getTraceFunctionArgsOutputLimit()
            );
        }

        return sprintf("\n%s",
            preg_replace('/^/m', self::VAR_DUMP_PREFIX, ob_get_clean())
        );
    }
private function getFrameArgsOutput(Frame $frame, $line)
    {
        if ($this->addTraceFunctionArgsToOutput() === false
            || $this->addTraceFunctionArgsToOutput() < $line) {
            return '';
        }

        // Dump the arguments:
        ob_start();
        var_dump($frame->getArgs());
        if (ob_get_length() > $this->getTraceFunctionArgsOutputLimit()) {
            // The argument var_dump is to big.
            // Discarded to limit memory usage.
            ob_clean();
            return sprintf(
                "\n%sArguments dump length greater than %d Bytes. Discarded.",
                self::VAR_DUMP_PREFIX,
                $this->getTraceFunctionArgsOutputLimit()
            );
        }

        return sprintf("\n%s",
            preg_replace('/^/m', self::VAR_DUMP_PREFIX, ob_get_clean())
        );
    }
private function getFrameArgsOutput ( Frame $ frame , $ line ) { if ( $ this -> addTraceFunctionArgsToOutput ( ) === false || $ this -> addTraceFunctionArgsToOutput ( ) < $ line ) { return '' ; } // Dump the arguments: ob_start ( ) ; var_dump ( $ frame -> getArgs ( ) ) ; if ( ob_get_length ( ) > $ this -> getTraceFunctionArgsOutputLimit ( ) ) { // The argument var_dump is to big. // Discarded to limit memory usage. ob_clean ( ) ; return sprintf ( "\n%sArguments dump length greater than %d Bytes. Discarded." , self :: VAR_DUMP_PREFIX , $ this -> getTraceFunctionArgsOutputLimit ( ) ) ; } return sprintf ( "\n%s" , preg_replace ( '/^/m' , self :: VAR_DUMP_PREFIX , ob_get_clean ( ) ) ) ; }
Get the frame args var_dump.
@param  \Whoops\Exception\Frame $frame [description]
@param  integer                 $line  [description]
@return string
Get the frame args var_dump .