@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | private function getUniqueBoundary($mimeType) |
| 348 | 348 | { |
| 349 | 349 | $type = ltrim(strtoupper(preg_replace('/^(multipart\/(.{3}).*|.*)$/i', '$2-', $mimeType)), '-'); |
| 350 | - return uniqid('----=MMP-' . $type . $this->objectId . '.', true); |
|
| 350 | + return uniqid('----=MMP-'.$type.$this->objectId.'.', true); |
|
| 351 | 351 | } |
| 352 | 352 | |
| 353 | 353 | /** |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | $part->setRawHeader( |
| 363 | 363 | 'Content-Type', |
| 364 | 364 | "$mimeType;\r\n\tboundary=\"" |
| 365 | - . $this->getUniqueBoundary($mimeType) . '"' |
|
| 365 | + . $this->getUniqueBoundary($mimeType).'"' |
|
| 366 | 366 | ); |
| 367 | 367 | } |
| 368 | 368 | |
@@ -528,7 +528,7 @@ discard block |
||
| 528 | 528 | */ |
| 529 | 529 | private function overwrite8bitContentEncoding() |
| 530 | 530 | { |
| 531 | - $parts = array_merge([ $this ], $this->getAllParts()); |
|
| 531 | + $parts = array_merge([$this], $this->getAllParts()); |
|
| 532 | 532 | foreach ($parts as $part) { |
| 533 | 533 | if ($part->getHeaderValue('Content-Transfer-Encoding') === '8bit') { |
| 534 | 534 | if (preg_match('/text\/.*/', $part->getHeaderValue('Content-Type'))) { |
@@ -801,7 +801,7 @@ discard block |
||
| 801 | 801 | public function addAttachmentPart($stringOrHandle, $mimeType, $filename = null, $disposition = 'attachment') |
| 802 | 802 | { |
| 803 | 803 | if ($filename === null) { |
| 804 | - $filename = 'file' . uniqid(); |
|
| 804 | + $filename = 'file'.uniqid(); |
|
| 805 | 805 | } |
| 806 | 806 | $filename = iconv('UTF-8', 'US-ASCII//translit//ignore', $filename); |
| 807 | 807 | $part = $this->createPartForAttachment(); |