@@ -261,8 +261,7 @@ discard block |
||
261 | 261 | } else { |
262 | 262 | $parts[] = $this->createContainer( $this->embedded, $type ); |
263 | 263 | } |
264 | - } |
|
265 | - else if( $this->html != null ) |
|
264 | + } else if( $this->html != null ) |
|
266 | 265 | { |
267 | 266 | $parts[] = $this->html; |
268 | 267 | } |
@@ -275,8 +274,7 @@ discard block |
||
275 | 274 | { |
276 | 275 | $type = \Zend\Mime\Mime::MULTIPART_ALTERNATIVE; |
277 | 276 | $msgparts = array( $this->createContainer( array_reverse( $parts ), $type ) ); |
278 | - } |
|
279 | - else if( !empty( $parts ) ) |
|
277 | + } else if( !empty( $parts ) ) |
|
280 | 278 | { |
281 | 279 | $msgparts = $parts; |
282 | 280 | } |
@@ -52,10 +52,12 @@ |
||
52 | 52 | |
53 | 53 | $this->logger->log( $priority, '<' . $facility . '> ' . $message ); |
54 | 54 | } |
55 | - catch( \Zend\Log\Exception\InvalidArgumentException $ze ) { |
|
55 | + catch( \Zend\Log\Exception\InvalidArgumentException $ze ) |
|
56 | + { |
|
56 | 57 | throw new \Aimeos\MW\Logger\Exception( $ze->getMessage() ); |
57 | 58 | } |
58 | - catch( \Zend\Log\Exception\RuntimeException $ze ) { |
|
59 | + catch( \Zend\Log\Exception\RuntimeException $ze ) |
|
60 | + { |
|
59 | 61 | throw new \Aimeos\MW\Logger\Exception( $ze->getMessage() ); |
60 | 62 | } |
61 | 63 | } |