소스 검색

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];
             }