| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 1 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
| 35 | {
|
||
| 36 | |||
| 37 | |||
| 38 | 1 | $options = $serviceLocator->get('ZfMailerOptions');
|
|
| 39 | 1 | $defaultEncoding = $options->getEncoding(); |
|
| 40 | |||
| 41 | 1 | $mailMessage = new Message(); |
|
| 42 | |||
| 43 | 1 | if (isset($defaultEncoding)) {
|
|
| 44 | 1 | $mailMessage->setEncoding($defaultEncoding); |
|
| 45 | } |
||
| 46 | |||
| 47 | 1 | return $mailMessage; |
|
| 48 | |||
| 52 |