src/Jackiedo/LogReader/LogParser.php
public function parseLogBody($content)
    {
        $pattern      = "/^".self::STACK_TRACE_DIVIDER_PATTERN."/m";
        $parts        = array_map('ltrim', preg_split($pattern, $content));
        $context      = $parts[0];
        $stack_traces = (isset($parts[1])) ? $parts[1] : null;

        return compact('context', 'stack_traces');
    }
public function parseLogBody($content)
    {
        $pattern      = "/^".self::STACK_TRACE_DIVIDER_PATTERN."/m";
        $parts        = array_map('ltrim', preg_split($pattern, $content));
        $context      = $parts[0];
        $stack_traces = (isset($parts[1])) ? $parts[1] : null;

        return compact('context', 'stack_traces');
    }
public function parseLogBody ( $ content ) { $ pattern = "/^" . self :: STACK_TRACE_DIVIDER_PATTERN . "/m" ; $ parts = array_map ( 'ltrim' , preg_split ( $ pattern , $ content ) ) ; $ context = $ parts [ 0 ] ; $ stack_traces = ( isset ( $ parts [ 1 ] ) ) ? $ parts [ 1 ] : null ; return compact ( 'context' , 'stack_traces' ) ; }
Parses the body part of the log entry into an array containing the necessary information

@param  string  $content

@return array   Structure is ['context' => '', 'stack_traces' => '']
Parses the body part of the log entry into an array containing the necessary information