| Total Complexity | 6 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 91.67% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 9 | class CallerDataFormatter implements CallerDataFormatterInterface, CallerConstants |
||
| 10 | { |
||
| 11 | 4 | public function process(CallerData $data): string |
|
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | 4 | private function getFunction(CallerData $caller) |
|
| 32 | { |
||
| 33 | 4 | if (self::STR_UNDEFINED === $function = $caller->getFunction()) { |
|
| 34 | $function = ucfirst($function); |
||
| 35 | } else { |
||
| 36 | 4 | $function .= '()'; |
|
| 37 | } |
||
| 38 | 4 | return $function; |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param CallerData $caller |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 4 | private function getLineAndFile(CallerData $caller): string |
|
| 56 | } |
||
| 57 | } |
||
| 58 |