| Conditions | 3 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | protected function getPartForToken(string $token, bool $isLiteral) : ?IHeaderPart |
||
| 27 | { |
||
| 28 | if (!$isLiteral && \preg_match('/' . MimeToken::MIME_PART_PATTERN . '/', $token)) { |
||
| 29 | return $this->partFactory->newMimeToken($token); |
||
| 30 | } |
||
| 31 | return $this->partFactory->newToken($token, $isLiteral); |
||
| 32 | } |
||
| 34 |