@@ -43,8 +43,8 @@ |
||
| 43 | 43 | protected function setParseHeaderValue(AbstractConsumer $consumer) |
| 44 | 44 | { |
| 45 | 45 | $value = $this->rawValue; |
| 46 | - $matchp = '~' . MimeLiteralPart::MIME_PART_PATTERN . '~'; |
|
| 47 | - $value = preg_replace_callback($matchp, function ($matches) { |
|
| 46 | + $matchp = '~'.MimeLiteralPart::MIME_PART_PATTERN.'~'; |
|
| 47 | + $value = preg_replace_callback($matchp, function($matches) { |
|
| 48 | 48 | return $this->mimeLiteralPartFactory->newInstance($matches[0]); |
| 49 | 49 | }, $value); |
| 50 | 50 | $this->parts = $consumer($value); |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | array $parts, |
| 100 | 100 | array &$retParts, |
| 101 | 101 | $curIndex, |
| 102 | - HeaderPart &$spacePart, |
|
| 102 | + HeaderPart & $spacePart, |
|
| 103 | 103 | HeaderPart $lastPart |
| 104 | 104 | ) { |
| 105 | 105 | $nextPart = $parts[$curIndex]; |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * @param int $curIndex |
| 122 | 122 | * @param HeaderPart $spacePart |
| 123 | 123 | */ |
| 124 | - private function addSpaces(array $parts, array &$retParts, $curIndex, HeaderPart &$spacePart = null) |
|
| 124 | + private function addSpaces(array $parts, array &$retParts, $curIndex, HeaderPart & $spacePart = null) |
|
| 125 | 125 | { |
| 126 | 126 | $lastPart = end($retParts); |
| 127 | 127 | if ($spacePart !== null && $curIndex < count($parts) && $parts[$curIndex]->getValue() !== '' && $lastPart !== false) { |