From 30d5a738e973be116473f76b6684cd1e6bb991a3 Mon Sep 17 00:00:00 2001 From: Robert Clancy Date: Mon, 15 Jul 2013 01:39:01 +1000 Subject: [PATCH] slightly changed syntax --- src/Robbo/Presenter/View/Environment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Robbo/Presenter/View/Environment.php b/src/Robbo/Presenter/View/Environment.php index 7205323..530f080 100755 --- a/src/Robbo/Presenter/View/Environment.php +++ b/src/Robbo/Presenter/View/Environment.php @@ -54,9 +54,9 @@ public function makePresentable($value) return $value->getPresenter(); } - if (is_array($value) OR ($value instanceof IteratorAggregate AND $value instanceof ArrayAccess)) + if (is_array($value) or ($value instanceof IteratorAggregate and $value instanceof ArrayAccess)) { - foreach ($value AS $k => $v) + foreach ($value as $k => $v) { $value[$k] = $this->makePresentable($v); }