Phalcon\Logger\Formatter\Firelogger::extractTrace PHP Method

extractTrace() protected method

Extract useful information from exception traces.
protected extractTrace ( array $trace ) : array
$trace array
return array
    protected function extractTrace($trace)
    {
        $t = [];
        $f = [];
        foreach ($trace as $frame) {
            // prevent notices about invalid indices, wasn't able to google smart solution, PHP is dumb ass
            $frame += ['file' => null, 'line' => null, 'class' => null, 'type' => null, 'function' => null, 'object' => null, 'args' => null];
            $t[] = [$frame['file'], $frame['line'], $frame['class'] . $frame['type'] . $frame['function'], $frame['object']];
            $f[] = $frame['args'];
        }
        return [$t, $f];
    }