| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 36 | 1 | public function leave(\Twig_Profiler_Profile $profile) |
|
| 37 | { |
||
| 38 | 1 | $profile->leave(); |
|
| 39 | 1 | array_shift($this->actives); |
|
| 40 | |||
| 41 | 1 | if (1 === count($this->actives)) { |
|
| 42 | 1 | $this->actives[0]->leave(); |
|
| 43 | } |
||
| 44 | 1 | if ($this->stopwatch && $profile->isTemplate()) { |
|
| 45 | 1 | $this->events[$profile]->stop(); |
|
| 46 | 1 | unset($this->events[$profile]); |
|
| 47 | } |
||
| 48 | 1 | } |
|
| 49 | |||
| 58 |