| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 1 | public function __invoke(ContainerInterface $serviceLocator) |
|
| 19 | { |
||
| 20 | 1 | if (!method_exists($serviceLocator, 'configure')) { |
|
| 21 | $serviceLocator = $serviceLocator->getServiceLocator(); |
||
| 22 | } |
||
| 23 | 1 | $service = new MtMail( |
|
| 24 | 1 | $serviceLocator->get(Mail::class) |
|
| 25 | ); |
||
| 26 | |||
| 27 | 1 | return $service; |
|
| 28 | } |
||
| 29 | } |
||
| 30 |