From: Fabien Potencier Date: Thu, 8 Nov 2012 06:24:19 +0000 (+0100) Subject: fixed CS X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=06bdc7a0ec972b3ee9fa415585ccf7d9da8feded;p=web%2Fkonrad%2Ftwig.git fixed CS --- 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, ')