@@ -123,8 +123,7 @@ discard block |
||
| 123 | 123 | public function getStream() |
| 124 | 124 | { |
| 125 | 125 | return ($this->parent !== null) ? |
| 126 | - $this->parent->getStream() : |
|
| 127 | - $this->messageStream; |
|
| 126 | + $this->parent->getStream() : $this->messageStream; |
|
| 128 | 127 | } |
| 129 | 128 | |
| 130 | 129 | /** |
@@ -136,8 +135,7 @@ discard block |
||
| 136 | 135 | public function getMessageResourceHandle() |
| 137 | 136 | { |
| 138 | 137 | return ($this->parent !== null) ? |
| 139 | - $this->parent->getMessageResourceHandle() : |
|
| 140 | - $this->messageHandle; |
|
| 138 | + $this->parent->getMessageResourceHandle() : $this->messageHandle; |
|
| 141 | 139 | } |
| 142 | 140 | |
| 143 | 141 | /** |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | public function __construct(MimeParser $mimeParser, NonMimeParser $nonMimeParser) |
| 29 | 29 | { |
| 30 | - $this->setParsers([ $mimeParser, $nonMimeParser ]); |
|
| 30 | + $this->setParsers([$mimeParser, $nonMimeParser]); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -77,8 +77,7 @@ discard block |
||
| 77 | 77 | foreach ($this->parsers as $parser) { |
| 78 | 78 | if ($parser->canParse($partBuilder)) { |
| 79 | 79 | $factory = ($partBuilder->getParent() === null) ? |
| 80 | - $parser->getParserMessageProxyFactory() : |
|
| 81 | - $parser->getParserPartProxyFactory(); |
|
| 80 | + $parser->getParserMessageProxyFactory() : $parser->getParserPartProxyFactory(); |
|
| 82 | 81 | return $factory->newInstance($partBuilder, $parser); |
| 83 | 82 | } |
| 84 | 83 | } |