| Total Complexity | 11 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 90.91% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class ProfilerReportFormatter extends ReportFormatter |
||
| 13 | { |
||
| 14 | /** @var string */ |
||
| 15 | private $elapsed = ''; |
||
| 16 | |||
| 17 | /** {@inheritdoc} */ |
||
| 18 | 3 | public function process(ReportInterface $report): string |
|
| 32 | // @codeCoverageIgnoreEnd |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param ProfilerReport $report |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | 2 | protected function countersStrings(ProfilerReport $report): string |
|
| 40 | { |
||
| 41 | 2 | $r = ''; |
|
| 42 | 2 | foreach ($report->getCountersReports() as $countersReport) { |
|
| 43 | 2 | if ($countersReport instanceof SimpleCounterReport && DEFAULT_NAME === $countersReport->getName()) { |
|
| 44 | $r .= $countersReport->isStarted() ? $countersReport : ''; |
||
| 45 | } else { |
||
| 46 | 2 | $r .= $countersReport; |
|
| 47 | } |
||
| 48 | } |
||
| 49 | 2 | return $r; |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param ProfilerReport $report |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 2 | protected function timersStrings(ProfilerReport $report): string |
|
| 68 | } |
||
| 69 | } |
||
| 70 |