src/Whoops/Handler/PlainTextHandler.php
private function getTraceOutput()
    {
        if (! $this->addTraceToOutput()) {
            return '';
        }
        $inspector = $this->getInspector();
        $frames = $inspector->getFrames();

        $response = "\nStack trace:";

        $line = 1;
        foreach ($frames as $frame) {
            /** @var Frame $frame */
            $class = $frame->getClass();

            $template = "\n%3d. %s->%s() %s:%d%s";
            if (! $class) {
                // Remove method arrow (->) from output.
                $template = "\n%3d. %s%s() %s:%d%s";
            }

            $response .= sprintf(
                $template,
                $line,
                $class,
                $frame->getFunction(),
                $frame->getFile(),
                $frame->getLine(),
                $this->getFrameArgsOutput($frame, $line)
            );

            $line++;
        }

        return $response;
    }
private function getTraceOutput()
    {
        if (! $this->addTraceToOutput()) {
            return '';
        }
        $inspector = $this->getInspector();
        $frames = $inspector->getFrames();

        $response = "\nStack trace:";

        $line = 1;
        foreach ($frames as $frame) {
            /** @var Frame $frame */
            $class = $frame->getClass();

            $template = "\n%3d. %s->%s() %s:%d%s";
            if (! $class) {
                // Remove method arrow (->) from output.
                $template = "\n%3d. %s%s() %s:%d%s";
            }

            $response .= sprintf(
                $template,
                $line,
                $class,
                $frame->getFunction(),
                $frame->getFile(),
                $frame->getLine(),
                $this->getFrameArgsOutput($frame, $line)
            );

            $line++;
        }

        return $response;
    }
private function getTraceOutput ( ) { if ( ! $ this -> addTraceToOutput ( ) ) { return '' ; } $ inspector = $ this -> getInspector ( ) ; $ frames = $ inspector -> getFrames ( ) ; $ response = "\nStack trace:" ; $ line = 1 ; foreach ( $ frames as $ frame ) { /** @var Frame $frame */ $ class = $ frame -> getClass ( ) ; $ template = "\n%3d. %s->%s() %s:%d%s" ; if ( ! $ class ) { // Remove method arrow (->) from output. $ template = "\n%3d. %s%s() %s:%d%s" ; } $ response .= sprintf ( $ template , $ line , $ class , $ frame -> getFunction ( ) , $ frame -> getFile ( ) , $ frame -> getLine ( ) , $ this -> getFrameArgsOutput ( $ frame , $ line ) ) ; $ line ++ ; } return $ response ; }
Get the exception trace as plain text.
@return string
Get the exception trace as plain text .