Переглянути джерело

removing unnecessary local variable in findFromParent function

Dan Miller 11 роки тому
батько
коміт
31800de88f
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      src/Mustache/Context.php

+ 1 - 2
src/Mustache/Context.php

@@ -122,8 +122,7 @@ class Mustache_Context
 
     public function findFromParent($id)
     {
-        $stack = $this->stack;
-        foreach($stack as $context) {
+        foreach($this->stack as $context) {
             if (is_array($context) && array_key_exists($id, $context)) {
                 return $context[$id];
             }