Conditions | 4 |
Paths | 5 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php declare(strict_types=1); |
||
26 | 3 | protected function extractDataFrom(AbstractReportable $reportable = null): void |
|
27 | { |
||
28 | 3 | if ($reportable instanceof Profiler) { |
|
29 | 3 | foreach ($reportable->getCounters() as $counter) { |
|
30 | 3 | $this->reports[self::COUNTERS][$counter->getName()] = $counter->report(); |
|
31 | } |
||
32 | 3 | foreach ($reportable->getTimers() as $timer) { |
|
33 | 3 | $this->reports[self::TIMERS][$timer->getName()] = $timer->report(); |
|
34 | } |
||
54 |