From 06bdc7a0ec972b3ee9fa415585ccf7d9da8feded Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 8 Nov 2012 07:24:19 +0100 Subject: [PATCH] fixed CS --- lib/Twig/Node/Expression/Name.php | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/Twig/Node/Expression/Name.php b/lib/Twig/Node/Expression/Name.php index 9d581b0..3b8fae0 100644 --- a/lib/Twig/Node/Expression/Name.php +++ b/lib/Twig/Node/Expression/Name.php @@ -50,12 +50,15 @@ class Twig_Node_Expression_Name extends Twig_Node_Expression ->raw('(isset($context[') ->string($name) ->raw(']) ? $context[') - ->string($name); - if ($this->getAttribute('ignore_strict_check') || !$compiler->getEnvironment()->isStrictVariables()) { - $compiler->raw('] : null)'); - } else { - $compiler->raw('] : $this->getContext($context, ')->string($name)->raw('))'); - } + ->string($name) + ->raw('] : ') + ; + + if ($this->getAttribute('ignore_strict_check') || !$compiler->getEnvironment()->isStrictVariables()) { + $compiler->raw('null)'); + } else { + $compiler->raw('$this->getContext($context, ')->string($name)->raw('))'); + } } else { $compiler ->raw('$this->getContext($context, ') -- 1.7.2.5