@@ -172,8 +172,7 @@ |
||
172 | 172 | private function getParentBoundary($curBoundary, MimePart $parent = null) |
173 | 173 | { |
174 | 174 | return $parent !== null ? |
175 | - $parent->getHeaderParameter('Content-Type', 'boundary') : |
|
176 | - $curBoundary; |
|
175 | + $parent->getHeaderParameter('Content-Type', 'boundary') : $curBoundary; |
|
177 | 176 | } |
178 | 177 | |
179 | 178 | /** |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | array $parts, |
102 | 102 | array &$retParts, |
103 | 103 | $curIndex, |
104 | - HeaderPart &$spacePart, |
|
104 | + HeaderPart & $spacePart, |
|
105 | 105 | HeaderPart $lastPart |
106 | 106 | ) { |
107 | 107 | $count = count($parts); |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * @param int $curIndex |
128 | 128 | * @param \ZBateson\MailMimeParser\Header\Part\HeaderPart $spacePart |
129 | 129 | */ |
130 | - private function addSpaces(array $parts, array &$retParts, $curIndex, HeaderPart &$spacePart = null) |
|
130 | + private function addSpaces(array $parts, array &$retParts, $curIndex, HeaderPart & $spacePart = null) |
|
131 | 131 | { |
132 | 132 | $lastPart = end($retParts); |
133 | 133 | if ($spacePart !== null && $parts[$curIndex]->getValue() !== '' && $lastPart !== false) { |
@@ -140,7 +140,7 @@ |
||
140 | 140 | $handle, |
141 | 141 | 'mailmimeparser-encode', |
142 | 142 | STREAM_FILTER_READ, |
143 | - [ 'charset' => $part->getHeaderParameter('Content-Type', 'charset') ] |
|
143 | + ['charset' => $part->getHeaderParameter('Content-Type', 'charset')] |
|
144 | 144 | ); |
145 | 145 | } |
146 | 146 | } |