| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | function notify(string $message = null, string $type = 'info', array $extra = []): Notify |
||
| 18 | { |
||
| 19 | /** @var Arcanedev\Notify\Contracts\Notify $notifier */ |
||
| 20 | $notifier = app(Notify::class); |
||
| 21 | |||
| 22 | if (is_null($message)) { |
||
| 23 | return $notifier; |
||
| 24 | } |
||
| 25 | |||
| 26 | return $notifier->flash($message, $type, $extra); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |