@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | public function add($name, $value) |
| 126 | 126 | { |
| 127 | 127 | $s = $this->getNormalizedHeaderName($name); |
| 128 | - $this->headers[$this->nextIndex] = [ $name, $value ]; |
|
| 128 | + $this->headers[$this->nextIndex] = [$name, $value]; |
|
| 129 | 129 | $this->headerObjects[$this->nextIndex] = null; |
| 130 | 130 | if (!isset($this->headerMap[$s])) { |
| 131 | 131 | $this->headerMap[$s] = []; |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | return; |
| 143 | 143 | } |
| 144 | 144 | $i = $this->headerMap[$s][$offset]; |
| 145 | - $this->headers[$i] = [ $name, $value ]; |
|
| 145 | + $this->headers[$i] = [$name, $value]; |
|
| 146 | 146 | $this->headerObjects[$i] = null; |
| 147 | 147 | } |
| 148 | 148 | |
@@ -54,9 +54,9 @@ |
||
| 54 | 54 | return $this->part->getRawHeaderIterator(); |
| 55 | 55 | } elseif ($this->part->getParent() !== null && $this->part->getParent()->isMime()) { |
| 56 | 56 | return new ArrayIterator([ |
| 57 | - [ 'Content-Type', $this->part->getContentType() ], |
|
| 58 | - [ 'Content-Disposition', $this->part->getContentDisposition() ], |
|
| 59 | - [ 'Content-Transfer-Encoding', $this->part->getContentTransferEncoding() ] |
|
| 57 | + ['Content-Type', $this->part->getContentType()], |
|
| 58 | + ['Content-Disposition', $this->part->getContentDisposition()], |
|
| 59 | + ['Content-Transfer-Encoding', $this->part->getContentTransferEncoding()] |
|
| 60 | 60 | ]); |
| 61 | 61 | } |
| 62 | 62 | return new ArrayIterator(); |