From: Fabien Potencier Date: Sun, 4 Aug 2013 13:08:44 +0000 (+0200) Subject: fixed CS X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=9859a7e1755ff4a9d60d6e6f26231cc6ae5ed8ed;p=web%2Fkonrad%2Ftwig.git fixed CS --- diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index 3967d78..d11df2e 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -266,10 +266,11 @@ class Twig_Environment { $suffix = null === $index ? '' : '_'.$index; $cls = $name.$suffix; - if (!isset($this->templateClasses[$cls])) { - $this->templateClasses[$cls] = $this->templateClassPrefix.md5($this->getLoader()->getCacheKey($name)).$suffix; + if (isset($this->templateClasses[$cls])) { + return $this->templateClasses[$cls]; } - return $this->templateClasses[$cls]; + + return $this->templateClasses[$cls] = $this->templateClassPrefix.md5($this->getLoader()->getCacheKey($name)).$suffix; } /**