Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3.0067 |
Changes | 0 |
1 | <?php |
||
18 | |||
19 | 1 | public static function get(int $depth = 2): string |
|
20 | { |
||
21 | 1 | $caller = debug_backtrace()[$depth]; |
|
22 | 1 | $type = $caller['type'] ?? ''; |
|
23 | 1 | $function = $caller['function'] . '()'; |
|
24 | return |
||
25 | 1 | isset($caller['class']) ? |
|
26 | 1 | $caller['class'] . $type . $function : |
|
27 | 1 | $function; |
|
28 | } |
||
29 | } |
||
30 |