@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | */ |
349 | 349 | private function getUniqueBoundary() |
350 | 350 | { |
351 | - return uniqid('----=MMP-' . $this->objectId . '.', true); |
|
351 | + return uniqid('----=MMP-'.$this->objectId.'.', true); |
|
352 | 352 | } |
353 | 353 | |
354 | 354 | /** |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | $part->setRawHeader( |
364 | 364 | 'Content-Type', |
365 | 365 | "$mimeType;\r\n\tboundary=\"" |
366 | - . $this->getUniqueBoundary() . "\"" |
|
366 | + . $this->getUniqueBoundary()."\"" |
|
367 | 367 | ); |
368 | 368 | } |
369 | 369 | |
@@ -602,7 +602,7 @@ discard block |
||
602 | 602 | public function setAsMultipartSigned($micalg, $protocol) |
603 | 603 | { |
604 | 604 | $contentType = $this->getHeaderValue('Content-Type', 'text/plain'); |
605 | - if (strcasecmp($contentType, 'multipart/signed') !== 0 && strcasecmp($contentType,'multipart/mixed') !== 0) { |
|
605 | + if (strcasecmp($contentType, 'multipart/signed') !== 0 && strcasecmp($contentType, 'multipart/mixed') !== 0) { |
|
606 | 606 | $this->makeSpaceForMultipartSignedMessage(); |
607 | 607 | } |
608 | 608 | $boundary = $this->getUniqueBoundary(); |
@@ -837,7 +837,7 @@ discard block |
||
837 | 837 | public function addAttachmentPart($stringOrHandle, $mimeType, $filename = null, $disposition = 'attachment') |
838 | 838 | { |
839 | 839 | if ($filename === null) { |
840 | - $filename = 'file' . uniqid(); |
|
840 | + $filename = 'file'.uniqid(); |
|
841 | 841 | } |
842 | 842 | $filename = iconv('UTF-8', 'US-ASCII//translit//ignore', $filename); |
843 | 843 | $part = $this->createPartForAttachment(); |
@@ -986,7 +986,7 @@ discard block |
||
986 | 986 | * @param \ZBateson\MailMimeParser\MimePart $boundaryParent |
987 | 987 | * @param string $boundary |
988 | 988 | */ |
989 | - private function writePartBoundaries($handle, MimePart $part, MimePart $parent, MimePart &$boundaryParent, $boundary) |
|
989 | + private function writePartBoundaries($handle, MimePart $part, MimePart $parent, MimePart & $boundaryParent, $boundary) |
|
990 | 990 | { |
991 | 991 | if ($boundaryParent !== $parent && $boundaryParent !== $part) { |
992 | 992 | if ($boundaryParent !== null && $parent->getParent() !== $boundaryParent) { |
@@ -1009,7 +1009,7 @@ discard block |
||
1009 | 1009 | * @param \ZBateson\MailMimeParser\MimePart $parent |
1010 | 1010 | * @param \ZBateson\MailMimeParser\MimePart $boundaryParent |
1011 | 1011 | */ |
1012 | - private function writePartTo($handle, MimePart $part, MimePart $parent, MimePart &$boundaryParent) |
|
1012 | + private function writePartTo($handle, MimePart $part, MimePart $parent, MimePart & $boundaryParent) |
|
1013 | 1013 | { |
1014 | 1014 | $boundary = $boundaryParent->getHeaderParameter('Content-Type', 'boundary'); |
1015 | 1015 | if (!empty($boundary)) { |