removing unnecessary local variable in findFromParent function
This commit is contained in:
@@ -122,8 +122,7 @@ class Mustache_Context
|
|||||||
|
|
||||||
public function findFromParent($id)
|
public function findFromParent($id)
|
||||||
{
|
{
|
||||||
$stack = $this->stack;
|
foreach($this->stack as $context) {
|
||||||
foreach($stack as $context) {
|
|
||||||
if (is_array($context) && array_key_exists($id, $context)) {
|
if (is_array($context) && array_key_exists($id, $context)) {
|
||||||
return $context[$id];
|
return $context[$id];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user