src/Jackiedo/LogReader/LogParser.php
public function parseStackTrace($content)
    {
        $content = trim($content);
        $pattern = "/^".self::STACK_TRACE_INDEX_PATTERN."/m";

        if (empty($content)) {
            return [];
        }

        $traces = preg_split($pattern, $content);

        if (empty($trace[0])) {
            array_shift($traces);
        }

        return $traces;
    }
public function parseStackTrace($content)
    {
        $content = trim($content);
        $pattern = "/^".self::STACK_TRACE_INDEX_PATTERN."/m";

        if (empty($content)) {
            return [];
        }

        $traces = preg_split($pattern, $content);

        if (empty($trace[0])) {
            array_shift($traces);
        }

        return $traces;
    }
public function parseStackTrace ( $ content ) { $ content = trim ( $ content ) ; $ pattern = "/^" . self :: STACK_TRACE_INDEX_PATTERN . "/m" ; if ( empty ( $ content ) ) { return [ ] ; } $ traces = preg_split ( $ pattern , $ content ) ; if ( empty ( $ trace [ 0 ] ) ) { array_shift ( $ traces ) ; } return $ traces ; }
Parses the stack trace part of the log entry into an array containing the necessary information

@param  string  $content

@return array
Parses the stack trace part of the log entry into an array containing the necessary information