| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | protected function registerDrivers(): void |
||
| 33 | { |
||
| 34 | $supported = config('mailbox.supported_drivers'); |
||
| 35 | |||
| 36 | foreach ($supported as $driver => $mappedTo) { |
||
| 37 | $callback = is_callable($mappedTo) ? |
||
| 38 | $mappedTo : $this->registerDriverCallable($mappedTo); |
||
| 39 | |||
| 40 | $this->extend($driver, $callback); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 51 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.