public function Twig_Extension_Profiler::leave in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/lib/Twig/Extension/Profiler.php \Twig_Extension_Profiler::leave()
File
- vendor/
twig/ twig/ lib/ Twig/ Extension/ Profiler.php, line 27
Class
Code
public function leave(Twig_Profiler_Profile $profile) {
$profile
->leave();
array_shift($this->actives);
if (1 === count($this->actives)) {
$this->actives[0]
->leave();
}
}