From bd5913c4c6b5707dc00ed88cf17f38b23d7dd8e0 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Wed, 19 Dec 2012 14:29:38 -0600 Subject: [PATCH] Use else instead of additional conditional - per suggestion from @Akrabat --- library/Zend/Mvc/View/Console/DefaultRenderingStrategy.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/Zend/Mvc/View/Console/DefaultRenderingStrategy.php b/library/Zend/Mvc/View/Console/DefaultRenderingStrategy.php index 353194af4a0..93e7f9d3db9 100644 --- a/library/Zend/Mvc/View/Console/DefaultRenderingStrategy.php +++ b/library/Zend/Mvc/View/Console/DefaultRenderingStrategy.php @@ -92,8 +92,7 @@ public function render(MvcEvent $e) // Fetch result from primary model if ($result instanceof ConsoleViewModel) { $responseText .= $result->getResult(); - } - if (!$result instanceof ConsoleViewModel) { + } else { $responseText .= $result->getVariable(ConsoleViewModel::RESULT); }