| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 3 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 17 | 4 | public function __invoke(ContainerInterface $serviceLocator) | |
| 18 |     { | ||
| 19 | 4 |         if (!method_exists($serviceLocator, 'configure')) { | |
| 20 | 4 | $serviceLocator = $serviceLocator->getServiceLocator(); | |
| 21 | 4 | } | |
| 22 | 4 |         $config = $serviceLocator->get('Configuration'); | |
| 23 | 4 | $plugin = new DefaultHeaders(); | |
| 24 | 4 |         if (isset($config['mt_mail']['default_headers'])) { | |
| 25 | 4 | $plugin->setHeaders($config['mt_mail']['default_headers']); | |
| 26 | 4 | } | |
| 27 | |||
| 28 | 4 | return $plugin; | |
| 29 | } | ||
| 30 | } | ||
| 31 |