| 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 | 1 | public static function method(int $depth = 3): string |
|
| 19 | { |
||
| 20 | 1 | $caller = static::get($depth); |
|
| 21 | 1 | $r = ''; |
|
| 22 | 1 | $function = $caller['function'] . '()'; |
|
| 23 | 1 | if (isset($caller['class'])) { |
|
| 24 | 1 | $type = $caller['type'] ?? ''; |
|
| 25 | 1 | $r .= $caller['class'] . $type . $function; |
|
| 26 | } else { |
||
| 27 | $r .= $function; |
||
| 28 | } |
||
| 29 | 1 | if (isset($caller['object'])) { |
|
| 30 | 1 | $r .= ' (' . \get_class($caller['object']) . ')'; |
|
| 31 | } |
||
| 32 | 1 | return $r; |
|
| 33 | } |
||
| 42 |