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