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