| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function send() |
||
| 42 | { |
||
| 43 | $response = collect(); |
||
| 44 | foreach ($this->recipients as $recipient) { |
||
| 45 | $response->put( |
||
| 46 | $recipient, |
||
| 47 | $this->client->Send($this->settings->from, $recipient, $this->body) |
||
| 48 | ); |
||
| 49 | } |
||
| 50 | |||
| 51 | return (count($this->recipients) == 1) ? $response->first() : $response; |
||
| 52 | } |
||
| 53 | } |
||
| 54 |