@@ -34,9 +34,9 @@ |
||
| 34 | 34 | return $this->part->getRawHeaders(); |
| 35 | 35 | } elseif ($this->part->getParent() !== null && $this->part->getParent()->isMime()) { |
| 36 | 36 | return [ |
| 37 | - [ 'Content-Type', $this->part->getContentType() ], |
|
| 38 | - [ 'Content-Disposition', $this->part->getContentDisposition() ], |
|
| 39 | - [ 'Content-Transfer-Encoding', $this->part->getContentTransferEncoding() ] |
|
| 37 | + ['Content-Type', $this->part->getContentType()], |
|
| 38 | + ['Content-Disposition', $this->part->getContentDisposition()], |
|
| 39 | + ['Content-Transfer-Encoding', $this->part->getContentTransferEncoding()] |
|
| 40 | 40 | ]; |
| 41 | 41 | } |
| 42 | 42 | return []; |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | $content = Psr7\stream_for(); |
| 140 | 140 | $this->writePartContentTo($this->part, $content); |
| 141 | 141 | $content->rewind(); |
| 142 | - $streams = [ new HeaderStream($this->part), $content ]; |
|
| 142 | + $streams = [new HeaderStream($this->part), $content]; |
|
| 143 | 143 | |
| 144 | 144 | if ($this->part instanceof ParentHeaderPart) { |
| 145 | 145 | $streams = array_merge($streams, $this->getBoundaryAndChildStreams($this->part)); |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | ); |
| 163 | 163 | return array_values(array_filter( |
| 164 | 164 | $parts, |
| 165 | - function ($part) { |
|
| 165 | + function($part) { |
|
| 166 | 166 | return !( |
| 167 | 167 | $part->isTextPart() |
| 168 | 168 | && $part->getContentDisposition() === 'inline' |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | public function addAttachmentPart($stringOrHandle, $mimeType, $filename = null, $disposition = 'attachment') |
| 396 | 396 | { |
| 397 | 397 | if ($filename === null) { |
| 398 | - $filename = 'file' . uniqid(); |
|
| 398 | + $filename = 'file'.uniqid(); |
|
| 399 | 399 | } |
| 400 | 400 | $part = $this->messageHelperService |
| 401 | 401 | ->getMultipartHelper() |