| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | public function send() |
||
| 55 | { |
||
| 56 | $response = collect(); |
||
| 57 | foreach ($this->recipients as $recipient) { |
||
| 58 | $response->put($recipient, $this->client->sms()->send( |
||
| 59 | $recipient, |
||
| 60 | $this->settings->from, |
||
| 61 | $this->body, |
||
| 62 | $this->settings->flash |
||
| 63 | )); |
||
| 64 | } |
||
| 65 | |||
| 66 | return (count($this->recipients) == 1) ? $response->first() : $response; |
||
| 67 | } |
||
| 68 | } |
||
| 69 |