| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public static function send($mail){ |
||
| 47 | $envelope = static::create($mail); |
||
| 48 | $results = (array) static::$driver->onSend($envelope); |
||
| 49 | static::trigger('send', $envelope->to(), $envelope, static::$driver_name, $results); |
||
| 50 | Event::trigger('core.email.send', $envelope->to(), $envelope, static::$driver_name, $results); |
||
| 51 | return count($results) && array_reduce( $results, function($carry, $item) { |
||
| 52 | return $carry && $item; |
||
| 53 | }, true ); |
||
| 54 | } |
||
| 55 | |||
| 59 |