Skip to content

Commit

Permalink
[zendframework#5743] object calisthenics
Browse files Browse the repository at this point in the history
- Return from conditional, to remove an else clause
  • Loading branch information
weierophinney authored and dima committed Nov 27, 2014
1 parent d3ba924 commit 08d178e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/Zend/View/Helper/FlashMessenger.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@ protected function renderMessages($namespace = PluginFlashMessenger::NAMESPACE_D

if ($autoEscape) {
$messagesToPrint[] = $escapeHtml($item);
} else {
$messagesToPrint[] = $item;
return;
}

$messagesToPrint[] = $item;
});
if (empty($messagesToPrint)) {
return '';
Expand Down

0 comments on commit 08d178e

Please sign in to comment.