From f31aa2185b9a542062c75dcf323ff1e609ac10ee Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 18 May 2019 06:14:51 +0200 Subject: [PATCH 1/2] fixed CS --- src/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parser.php b/src/Parser.php index 184ef47b8..0ea102cc8 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -337,7 +337,7 @@ class Parser implements \Twig_ParserInterface if (null !== $this->peekBlockStack()) { foreach ($this->importedSymbols as $functions) { if (isset($functions[$type][$alias])) { - if (count($this->blockStack) > 1) { + if (\count($this->blockStack) > 1) { return null; } From 60ab3e71340e920122ca6662c14f384fa4d9c629 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 18 May 2019 06:15:39 +0200 Subject: [PATCH 2/2] fixed CS --- src/Node/ImportNode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Node/ImportNode.php b/src/Node/ImportNode.php index 94f35b6c0..b661f4313 100644 --- a/src/Node/ImportNode.php +++ b/src/Node/ImportNode.php @@ -35,7 +35,7 @@ class ImportNode extends Node ->repr($this->getNode('var')->getAttribute('name')) ->raw('] = ') ; - + if ($this->getAttribute('global')) { $compiler ->raw('$this->macros[')