Total Complexity | 10 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class ProfilerReportFormatter extends ReportFormatter |
||
12 | { |
||
13 | /** @var ProfilerReport */ |
||
14 | protected $report; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $elapsed = ''; |
||
18 | |||
19 | 1 | public function getString(): string |
|
27 | ); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | */ |
||
33 | 1 | protected function countersStrings(): string |
|
34 | { |
||
35 | 1 | $r = ''; |
|
36 | 1 | foreach ($this->report->getCountersReports() as $report) { |
|
37 | 1 | if ($report instanceof CounterReport && DEFAULT_NAME === $report->getName()) { |
|
38 | 1 | $r .= $report->isStarted() ? $report : ''; |
|
39 | } else { |
||
40 | 1 | $r .= $report; |
|
41 | } |
||
42 | } |
||
43 | 1 | return $r; |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | 1 | protected function timersStrings(): string |
|
60 | } |
||
61 | } |
||
62 |