| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 18 | 4 | public function format(Formattable $formattable): string |
|
| 19 | { |
||
| 20 | 4 | if ($formattable instanceof ProfilerReport) { |
|
| 21 | return |
||
| 22 | 3 | sprintf( |
|
| 23 | 3 | '%s%s%s', |
|
| 24 | 3 | $this->countersStrings($formattable), |
|
| 25 | 3 | $this->timersStrings($formattable), |
|
| 26 | 3 | $this->elapsed |
|
| 27 | ); |
||
| 28 | } |
||
| 29 | return |
||
| 30 | 1 | $this->errorMessage($formattable, ProfilerReport::class); |
|
| 31 | } |
||
| 68 |