| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 3 | public function enter(\Twig_Profiler_Profile $profile) |
|
| 27 | { |
||
| 28 | 3 | if ($this->stopwatch && $profile->isTemplate()) { |
|
| 29 | 1 | $this->events[$profile] = $this->stopwatch->start($profile->getName(), 'template'); |
|
| 30 | } |
||
| 31 | |||
| 32 | 3 | $this->actives[0]->addProfile($profile); |
|
| 33 | 3 | array_unshift($this->actives, $profile); |
|
| 34 | 3 | } |
|
| 35 | |||
| 58 |