| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php namespace Arcanedev\Notify; |
||
| 33 | 48 | public function loadStores(): void |
|
| 34 | { |
||
| 35 | 48 | $stores = $this->config()->get('notify.stores', []); |
|
| 36 | |||
| 37 | 48 | foreach ($stores as $driver => $store) { |
|
| 38 | $this->extend($driver, function () use ($store) { |
||
| 39 | 48 | return $this->app->make($store['driver']); |
|
| 40 | 48 | }); |
|
| 41 | |||
| 42 | 48 | $this->app->when($store['driver']) |
|
| 43 | 48 | ->needs('$options') |
|
| 44 | 48 | ->give($store['options'] ?? []); |
|
| 45 | } |
||
| 46 | 48 | } |
|
| 47 | |||
| 63 |