| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 4 | public function getString(): string |
|
| 19 | { |
||
| 20 | 4 | $str = self::BENCHMARK . PHP_EOL; |
|
| 21 | /** @var BenchmarkFunction $function */ |
||
| 22 | 4 | foreach ($this->report->getFunctions() as $name => $function) { |
|
| 23 | 4 | $str .= (new BenchmarkFunctionFormatter($function))->getString(); |
|
| 24 | } |
||
| 25 | return |
||
| 26 | 4 | sprintf( |
|
| 27 | 4 | '%s%s%s%s', |
|
| 28 | 4 | $str, |
|
| 29 | 4 | $this->countersStatistics(), |
|
| 30 | 4 | $this->report->getMemoryUsageReport(), |
|
| 31 | 4 | PHP_EOL |
|
| 32 | ); |
||
| 68 |