Exception   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCustomTrace() 0 7 1
1
<?php
2
declare(strict_types=1);
3
4
namespace idimsh\PhpInternalsMocker\Exception;
5
6
/**
7
 * @codeCoverageIgnore
8
 */
9
class Exception extends \Exception
10
{
11
    protected static function getCustomTrace(): string
12
    {
13
        $trace = (new \Exception())->getTraceAsString();
14
        $trace = \explode("\n", $trace);
15
        \array_shift($trace);
16
        \array_shift($trace);
17
        return \implode("\n", $trace);
18
    }
19
}
20