Skip to content

Commit

Permalink
Update AdvancedMail.php
Browse files Browse the repository at this point in the history
Return statements were missing.
  • Loading branch information
tomazahlin committed Apr 25, 2016
1 parent f85f2de commit c9be8b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Ahlin/Mailer/Model/AdvancedMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public function addRecipients(array $recipients)
foreach ($recipients as $recipient) {
$this->addRecipient($recipient);
}

return $this;
}

/**
Expand All @@ -67,6 +69,8 @@ public function addRecipient(MailUserInterface $recipient)
{
$recipient = $this->getUserModel($recipient);
$this->recipients->add($recipient);

return $this;
}

/**
Expand All @@ -88,6 +92,8 @@ public function addBccRecipients(array $recipients)
foreach ($recipients as $recipient) {
$this->addBccRecipient($recipient);
}

return $this;
}

/**
Expand All @@ -99,6 +105,8 @@ public function addBccRecipient(MailUserInterface $recipient)
{
$recipient = $this->getUserModel($recipient);
$this->bccRecipients->add($recipient);

return $this;
}

/**
Expand All @@ -118,6 +126,8 @@ public function getBccRecipients()
public function addAttachment(Attachment $attachment)
{
$this->attachments->add($attachment);

return $this;
}

/**
Expand Down

0 comments on commit c9be8b6

Please sign in to comment.