Conditions | 5 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
37 | protected function countersStrings(ProfilerReport $report): string |
||
38 | { |
||
39 | 3 | $r = ''; |
|
40 | foreach ($report->getCountersReports() as $counterReport) { |
||
41 | 3 | if ($counterReport instanceof AbstractCounterReport && DEFAULT_NAME === $counterReport->getName()) { |
|
42 | 3 | $r .= $counterReport->isStarted() ? $counterReport : ''; |
|
43 | 3 | } else { |
|
44 | 3 | $r .= $counterReport; |
|
45 | } |
||
46 | 1 | } |
|
47 | return $r; |
||
48 | } |
||
68 |