From 3fbcfa1470456ae05074ec1d7e5bd3882cdc3be1 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 19 Feb 2010 10:50:24 -0700 Subject: [PATCH] phpdoc; consolidate code --- imp/lib/Views/ShowMessage.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/imp/lib/Views/ShowMessage.php b/imp/lib/Views/ShowMessage.php index a07c913dd..e654c5a50 100644 --- a/imp/lib/Views/ShowMessage.php +++ b/imp/lib/Views/ShowMessage.php @@ -18,7 +18,6 @@ class IMP_Views_ShowMessage * Horde_Mime_Address::parseAddressList(). * * @return array Array with the following keys: inner, personal, raw. - * @throws Horde_Exception */ private function _buildAddressList($addrlist) { @@ -31,14 +30,14 @@ class IMP_Views_ShowMessage foreach (Horde_Mime_Address::getAddressesFromObject($addrlist) as $ob) { if (!empty($ob['inner'])) { try { - $addr_array[] = array('raw' => Horde::callHook('dimp_addressformatting', array($ob), 'imp')); + $tmp = array('raw' => Horde::callHook('dimp_addressformatting', array($ob), 'imp')); } catch (Horde_Exception_HookNotSet $e) { $tmp = array('inner' => $ob['inner']); if (!empty($ob['personal'])) { $tmp['personal'] = $ob['personal']; } - $addr_array[] = $tmp; } + $addr_array[] = $tmp; } } @@ -87,7 +86,6 @@ class IMP_Views_ShowMessage * 'save_as' - The save link * 'title' - The title of the page * - * @throws Horde_Exception */ public function showMessage($args) { -- 2.11.0