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