| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function format(NotificationInterface $notification) |
||
| 28 | { |
||
| 29 | try { |
||
| 30 | // Do the formatting. |
||
| 31 | $message = $this->formatter->format($notification); |
||
| 32 | |||
| 33 | return $message; |
||
| 34 | } catch (\Exception $e) { |
||
| 35 | throw new MessageFormatException( |
||
| 36 | $e->getMessage() . ' ' . $e->getCode() . ' ' . $e->getFile() . ' ' . $e->getLine() |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 53 |