From: Fabien Potencier Date: Tue, 15 Oct 2013 15:51:49 +0000 (+0200) Subject: made a cosmetic change (closes #1226) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=1f2103f9ed07d766b061a7aa1a81708f3474f350;p=web%2Fkonrad%2Ftwig.git made a cosmetic change (closes #1226) --- diff --git a/lib/Twig/Node/If.php b/lib/Twig/Node/If.php index 4296a8d..b42d107 100644 --- a/lib/Twig/Node/If.php +++ b/lib/Twig/Node/If.php @@ -30,7 +30,7 @@ class Twig_Node_If extends Twig_Node public function compile(Twig_Compiler $compiler) { $compiler->addDebugInfo($this); - for ($i = 0; $i < count($this->getNode('tests')); $i += 2) { + for ($i = 0, $count = count($this->getNode('tests')); $i < $count; $i += 2) { if ($i > 0) { $compiler ->outdent()