PATH:
home
/
nappmpmd
/
mamza.xyz
/
wp-content
/
plugins
/
adfoxly
/
vendor
/
twig
/
twig
/
src
/
Node
<?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Twig\Node; use Twig\Compiler; /** * Represents a spaceless node. * * It removes spaces between HTML tags. * * @deprecated since Twig 2.7, to be removed in 3.0 * * @author Fabien Potencier <fabien@symfony.com> */ class SpacelessNode extends Node implements NodeOutputInterface { public function __construct(Node $body, int $lineno, string $tag = 'spaceless') { parent::__construct(['body' => $body], [], $lineno, $tag); } public function compile(Compiler $compiler) { $compiler ->addDebugInfo($this) ; if ($compiler->getEnvironment()->isDebug()) { $compiler->write("ob_start();\n"); } else { $compiler->write("ob_start(function () { return ''; });\n"); } $compiler ->subcompile($this->getNode('body')) ->write("echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));\n") ; } } class_alias('Twig\Node\SpacelessNode', 'Twig_Node_Spaceless');
[-] MacroNode.php
[edit]
[-] CheckSecurityCallNode.php
[edit]
[-] IncludeNode.php
[edit]
[+]
..
[-] AutoEscapeNode.php
[edit]
[-] ModuleNode.php
[edit]
[-] BlockReferenceNode.php
[edit]
[-] Node.php
[edit]
[-] CheckSecurityNode.php
[edit]
[-] ForNode.php
[edit]
[-] TextNode.php
[edit]
[-] NodeOutputInterface.php
[edit]
[-] WithNode.php
[edit]
[-] BlockNode.php
[edit]
[-] PrintNode.php
[edit]
[-] DoNode.php
[edit]
[-] IfNode.php
[edit]
[-] ForLoopNode.php
[edit]
[+]
Expression
[-] BodyNode.php
[edit]
[-] DeprecatedNode.php
[edit]
[-] NodeCaptureInterface.php
[edit]
[-] FlushNode.php
[edit]
[-] SandboxNode.php
[edit]
[-] EmbedNode.php
[edit]
[-] SetNode.php
[edit]
[-] SpacelessNode.php
[edit]
[-] CheckToStringNode.php
[edit]
[-] SandboxedPrintNode.php
[edit]
[-] ImportNode.php
[edit]