Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
23 | 6 | protected function doCollect() |
|
24 | { |
||
25 | 6 | $time = 0; |
|
26 | 6 | foreach ($this->callRegistry->getCalls() as $call) { |
|
27 | 6 | $time += (isset($call['duration']) ? $call['duration'] : 0); |
|
28 | } |
||
29 | |||
30 | 6 | $this->data = [ |
|
31 | 6 | 'total' => count($this->callRegistry->getCalls()), |
|
32 | 6 | 'time' => $time, |
|
33 | 6 | 'requests' => $this->callRegistry->getCalls(), |
|
34 | ]; |
||
35 | 6 | } |
|
36 | |||
78 |