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