@@ -109,9 +109,9 @@ |
||
109 | 109 | foreach ($parts as $part) { |
110 | 110 | // order is important here - CommentPart extends LiteralPart |
111 | 111 | if ($part instanceof CommentPart) { |
112 | - $comment .= '(' . $part->getComment() . ')'; |
|
112 | + $comment .= '('.$part->getComment().')'; |
|
113 | 113 | } elseif ($part instanceof LiteralPart) { |
114 | - $comment .= '"' . $part->getValue() . '"'; |
|
114 | + $comment .= '"'.$part->getValue().'"'; |
|
115 | 115 | } else { |
116 | 116 | $comment .= $part->getValue(); |
117 | 117 | } |
@@ -63,6 +63,6 @@ |
||
63 | 63 | protected function getTokenSplitPattern() |
64 | 64 | { |
65 | 65 | $sChars = implode('|', $this->getAllTokenSeparators()); |
66 | - return '~(' . $sChars . ')~'; |
|
66 | + return '~('.$sChars.')~'; |
|
67 | 67 | } |
68 | 68 | } |
@@ -166,7 +166,7 @@ |
||
166 | 166 | { |
167 | 167 | $sChars = implode('|', $this->getAllTokenSeparators()); |
168 | 168 | $mimePartPattern = MimeLiteralPart::MIME_PART_PATTERN; |
169 | - return '~(' . $mimePartPattern . '|\\\\.|' . $sChars . ')~'; |
|
169 | + return '~('.$mimePartPattern.'|\\\\.|'.$sChars.')~'; |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | /** |
@@ -158,8 +158,8 @@ |
||
158 | 158 | ksort($parts); |
159 | 159 | return array_reduce( |
160 | 160 | $parts, |
161 | - function ($carry, $item) { |
|
162 | - return $carry . $item; |
|
161 | + function($carry, $item) { |
|
162 | + return $carry.$item; |
|
163 | 163 | }, |
164 | 164 | '' |
165 | 165 | ); |
@@ -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(); |
@@ -88,7 +88,7 @@ |
||
88 | 88 | } else { |
89 | 89 | $this->copyHeader($from, $to, 'Content-Transfer-Encoding'); |
90 | 90 | } |
91 | - $rem = array_diff(self::$contentHeaders, [ 'Content-Type', 'Content-Transfer-Encoding']); |
|
91 | + $rem = array_diff(self::$contentHeaders, ['Content-Type', 'Content-Transfer-Encoding']); |
|
92 | 92 | foreach ($rem as $header) { |
93 | 93 | $this->copyHeader($from, $to, $header); |
94 | 94 | } |
@@ -107,7 +107,7 @@ |
||
107 | 107 | * |
108 | 108 | * @param IMimePart $part |
109 | 109 | * @return MimePart the newly-created MimePart |
110 | - */ |
|
110 | + */ |
|
111 | 111 | public function createNewContentPartFrom(IMimePart $part) |
112 | 112 | { |
113 | 113 | $mime = $this->mimePartFactory->newInstance(); |
@@ -88,7 +88,7 @@ |
||
88 | 88 | protected function getTokenSplitPattern() |
89 | 89 | { |
90 | 90 | $sChars = implode('|', $this->getAllTokenSeparators()); |
91 | - return '~(' . $sChars . ')~'; |
|
91 | + return '~('.$sChars.')~'; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | $strValue = $ehloName; |
111 | 111 | if ($commentPart !== null && $this->matchHostPart($commentPart->getComment(), $hostname, $address)) { |
112 | - $strValue .= ' (' . $commentPart->getComment() . ')'; |
|
112 | + $strValue .= ' ('.$commentPart->getComment().')'; |
|
113 | 113 | $commentPart = null; |
114 | 114 | } |
115 | 115 | |
@@ -120,6 +120,6 @@ discard block |
||
120 | 120 | $hostname, |
121 | 121 | $address |
122 | 122 | ); |
123 | - return array_filter([ $domainPart, $commentPart ]); |
|
123 | + return array_filter([$domainPart, $commentPart]); |
|
124 | 124 | } |
125 | 125 | } |
@@ -96,7 +96,7 @@ |
||
96 | 96 | */ |
97 | 97 | protected function processParts(array $parts) |
98 | 98 | { |
99 | - return array_values(array_filter($parts, function ($part) { |
|
99 | + return array_values(array_filter($parts, function($part) { |
|
100 | 100 | if (empty($part) || $part instanceof CommentPart) { |
101 | 101 | return false; |
102 | 102 | } |