Code Duplication    Length = 6-9 lines in 2 locations

src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php 2 locations

@@ 326-331 (lines=6) @@
323
                    $call->type = $matchs[2];
324
                    // $call->args = $matchs[4];
325
                    $eStackArrayReturn[] = $call;
326
                } else {
327
                    preg_match($this->pattern->getPattern('stack', 1), $s, $matchs);
328
                    $call->function = $matchs[1];
329
                    // $call->args = $matchs[2];
330
                    $eStackArrayReturn[] = $call;
331
                }
332
            } else {
333
                preg_match($this->pattern->getPattern('stack', 2), $s, $matchs);
334
                if ($matchs) {
@@ 347-355 (lines=9) @@
344
                        if (isset($matchs[4])) {
345
                            // $call->args = $matchs[4];
346
                        }
347
                    } else {
348
                        preg_match($this->pattern->getPattern('stack', 1), $tmp, $matchs);
349
                        if ($matchs) {
350
                            $call->function = $matchs[1];
351
                        }
352
                        if (isset($matchs[2])) {
353
                            // $call->args = $matchs[2];
354
                        }
355
                    }
356
                    $eStackArrayReturn[] = $call;
357
                } else {
358
                    $eStackArrayReturn[] = $s;