protected function renderTrace(array $frames): WriterContract
    {
        $this->render('<comment>Exception trace:</comment>');
        foreach ($frames as $i => $frame) {
            if ($i > static::VERBOSITY_NORMAL_FRAMES && $this->output->getVerbosity(
                ) < OutputInterface::VERBOSITY_VERBOSE) {
                $this->render('<info>Please use the argument <fg=red>-v</> to see more details.</info>');
                break;
            }

            $file = $frame->getFile();
            $line = $frame->getLine();
            $class = empty($frame->getClass()) ? '' : $frame->getClass().'::';
            $function = $frame->getFunction();
            $args = $this->argumentFormatter->format($frame->getArgs());
            $pos = str_pad((int) $i + 1, 4, ' ');

            $this->render("<comment><fg=cyan>$pos</>$class$function($args)</comment>");
            $this->render("    <fg=green>$file</>:<fg=green>$line</>", false);
        }

        return $this;
    }
protected function renderTrace(array $frames): WriterContract
    {
        $this->render('<comment>Exception trace:</comment>');
        foreach ($frames as $i => $frame) {
            if ($i > static::VERBOSITY_NORMAL_FRAMES && $this->output->getVerbosity(
                ) < OutputInterface::VERBOSITY_VERBOSE) {
                $this->render('<info>Please use the argument <fg=red>-v</> to see more details.</info>');
                break;
            }

            $file = $frame->getFile();
            $line = $frame->getLine();
            $class = empty($frame->getClass()) ? '' : $frame->getClass().'::';
            $function = $frame->getFunction();
            $args = $this->argumentFormatter->format($frame->getArgs());
            $pos = str_pad((int) $i + 1, 4, ' ');

            $this->render("<comment><fg=cyan>$pos</>$class$function($args)</comment>");
            $this->render("    <fg=green>$file</>:<fg=green>$line</>", false);
        }

        return $this;
    }
protected function renderTrace ( array $ frames ) : WriterContract { $ this -> render ( '<comment>Exception trace:</comment>' ) ; foreach ( $ frames as $ i => $ frame ) { if ( $ i > static :: VERBOSITY_NORMAL_FRAMES && $ this -> output -> getVerbosity ( ) < OutputInterface :: VERBOSITY_VERBOSE ) { $ this -> render ( '<info>Please use the argument <fg=red>-v</> to see more details.</info>' ) ; break ; } $ file = $ frame -> getFile ( ) ; $ line = $ frame -> getLine ( ) ; $ class = empty ( $ frame -> getClass ( ) ) ? '' : $ frame -> getClass ( ) . '::' ; $ function = $ frame -> getFunction ( ) ; $ args = $ this -> argumentFormatter -> format ( $ frame -> getArgs ( ) ) ; $ pos = str_pad ( ( int ) $ i + 1 , 4 , ' ' ) ; $ this -> render ( "<comment><fg=cyan>$pos</>$class$function($args)</comment>" ) ; $ this -> render ( "    <fg=green>$file</>:<fg=green>$line</>" , false ) ; } return $ this ; }
Renders the trace of the exception.

@param  array $frames

@return \NunoMaduro\Collision\Contracts\Writer
Renders the trace of the exception .