| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 1 | public function newInstance(PartBuilder $partBuilder, StreamInterface $messageStream = null) |
|
| 28 | { |
||
| 29 | 1 | $partStream = null; |
|
| 30 | 1 | $contentStream = null; |
|
| 31 | 1 | if ($messageStream !== null) { |
|
| 32 | 1 | $partStream = $this->streamFactory->getLimitedPartStream($messageStream, $partBuilder); |
|
| 33 | 1 | $contentStream = $this->streamFactory->getLimitedContentStream($messageStream, $partBuilder); |
|
| 34 | } |
||
| 35 | 1 | return new UUEncodedPart( |
|
| 36 | 1 | $this->partStreamFilterManagerFactory->newInstance(), |
|
| 37 | 1 | $this->streamFactory, |
|
| 38 | 1 | $partBuilder, |
|
| 39 | 1 | $partStream, |
|
| 40 | 1 | $contentStream |
|
| 41 | ); |
||
| 44 |