| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public static function make($broker = null) |
||
| 17 | { |
||
| 18 | $config = self::getConfig(); |
||
| 19 | |||
| 20 | $transportType = $broker ?? $config['config']['transport']; |
||
| 21 | $connectionValues = $config['transports'][$transportType]; |
||
| 22 | $transport = TransportFactory::create($connectionValues, $transportType)->create(); |
||
| 23 | |||
| 24 | return new Mailer($transport); |
||
|
|
|||
| 25 | } |
||
| 27 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: