mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 12:06:56 +00:00
Fix CS
This commit is contained in:
@@ -199,7 +199,7 @@
|
||||
* removed Parser::isReservedMacroName()
|
||||
* removed SanboxedPrintNode
|
||||
* removed Node::setTemplateName()
|
||||
* made classes maked as "@final" final
|
||||
* made classes marked as "@final" final
|
||||
* removed InitRuntimeInterface, ExistsLoaderInterface, and SourceContextLoaderInterface
|
||||
* removed the "spaceless" tag
|
||||
* removed Twig\Environment::getBaseTemplateClass() and Twig\Environment::setBaseTemplateClass()
|
||||
|
||||
@@ -34,7 +34,7 @@ class CaptureNode extends Node
|
||||
if (!$this->getAttribute('raw')) {
|
||||
$compiler->raw("('' === \$tmp = ");
|
||||
}
|
||||
$compiler->raw($useYield ? "implode('', iterator_to_array(" : "\\Twig\\Extension\\CoreExtension::captureOutput(");
|
||||
$compiler->raw($useYield ? "implode('', iterator_to_array(" : '\\Twig\\Extension\\CoreExtension::captureOutput(');
|
||||
if ($this->getAttribute('with_blocks')) {
|
||||
$compiler->raw("(function () use (&\$context, \$macros, \$blocks) {\n");
|
||||
} else {
|
||||
|
||||
@@ -342,6 +342,7 @@ abstract class Template
|
||||
try {
|
||||
if ($this->useYield) {
|
||||
yield from $this->doDisplay($context, $blocks);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -411,6 +412,7 @@ abstract class Template
|
||||
try {
|
||||
if ($this->useYield) {
|
||||
yield from $template->$block($context, $blocks);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ namespace Twig\Tests\Node;
|
||||
use Twig\Environment;
|
||||
use Twig\Loader\ArrayLoader;
|
||||
use Twig\Node\BlockNode;
|
||||
use Twig\Node\Node;
|
||||
use Twig\Node\TextNode;
|
||||
use Twig\Test\NodeTestCase;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user