Permalink
Browse files

Merge pull request #1225 from LouisLandry/cs

Fixing up code styling from #1204.
  • Loading branch information...
2 parents b36cfdd + 22eefb8 commit 7983df6a2e0a9ac6ecc2512691b2ab0c1a9a350e @realityking realityking committed May 27, 2012
Showing with 8 additions and 5 deletions.
  1. +8 −5 libraries/joomla/mail/mail.php
View
13 libraries/joomla/mail/mail.php
@@ -193,16 +193,19 @@ public function addRecipient($recipient, $name = '')
// If the recipient is an array, add each recipient... otherwise just add the one
if (is_array($recipient))
{
- if (is_array($name)){
+ if (is_array($name))
+ {
$combined = array_combine($recipient, $name);
- foreach ($combined as $recipientEmail=>$recipientName)
+ foreach ($combined as $recipientEmail => $recipientName)
{
$recipientEmail = JMailHelper::cleanLine($recipientEmail);
$recipientName = JMailHelper::cleanLine($recipientName);
- $this->AddAddress($recipientEmail,$recipientName);
+ $this->AddAddress($recipientEmail, $recipientName);
}
- }else{
- $name = JMailHelper::cleanLine($name);
+ }
+ else
+ {
+ $name = JMailHelper::cleanLine($name);
foreach ($recipient as $to)
{
$to = JMailHelper::cleanLine($to);

0 comments on commit 7983df6

Please sign in to comment.