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