@@ -157,11 +157,11 @@ discard block |
||
157 | 157 | if ($p !== 0) { |
158 | 158 | $next = 76 - ($p % 78); |
159 | 159 | if (strlen($encoded) > $next) { |
160 | - $firstLine = substr($encoded, 0, $next) . "\r\n"; |
|
160 | + $firstLine = substr($encoded, 0, $next)."\r\n"; |
|
161 | 161 | $encoded = substr($encoded, $next); |
162 | 162 | } |
163 | 163 | } |
164 | - return $firstLine . rtrim(chunk_split($encoded, 76)); |
|
164 | + return $firstLine.rtrim(chunk_split($encoded, 76)); |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | */ |
183 | 183 | public function write($string) |
184 | 184 | { |
185 | - $bytes = $this->remainder . $string; |
|
185 | + $bytes = $this->remainder.$string; |
|
186 | 186 | $len = strlen($bytes); |
187 | 187 | if (($len % 3) !== 0) { |
188 | 188 | $this->remainder = substr($bytes, -($len % 3)); |
@@ -196,7 +196,7 @@ |
||
196 | 196 | */ |
197 | 197 | private function writeUUFooter() |
198 | 198 | { |
199 | - $this->writeRaw("\r\n`\r\nend"); |
|
199 | + $this->writeRaw("\r\n`\r\nend"); |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | /** |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | { |
209 | 209 | $encoded = preg_replace('/\r\n|\r|\n/', "\r\n", rtrim(convert_uuencode($bytes))); |
210 | 210 | // removes ending '`' line |
211 | - $this->writeRaw("\r\n" . rtrim(substr($encoded, 0, -1))); |
|
211 | + $this->writeRaw("\r\n".rtrim(substr($encoded, 0, -1))); |
|
212 | 212 | } |
213 | 213 | |
214 | 214 | /** |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | if ($this->position === 0) { |
233 | 233 | $this->writeUUHeader(); |
234 | 234 | } |
235 | - $write = $this->remainder . $string; |
|
235 | + $write = $this->remainder.$string; |
|
236 | 236 | $nRem = strlen($write) % 45; |
237 | 237 | |
238 | 238 | $this->remainder = ''; |
@@ -44,11 +44,11 @@ discard block |
||
44 | 44 | */ |
45 | 45 | private function readEncodedChars($length, $pre = '') |
46 | 46 | { |
47 | - $str = $pre . $this->readRaw($length); |
|
47 | + $str = $pre.$this->readRaw($length); |
|
48 | 48 | $len = strlen($str); |
49 | 49 | if ($len > 0 && !preg_match('/^[0-9a-f]{2}$|^[\r\n].$/is', $str)) { |
50 | 50 | $this->seekRaw(-$len, SEEK_CUR); |
51 | - return '3D'; // '=' character |
|
51 | + return '3D'; // '=' character |
|
52 | 52 | } |
53 | 53 | return $str; |
54 | 54 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | public function write($string) |
138 | 138 | { |
139 | 139 | $encodedLine = quoted_printable_encode($this->lastLine); |
140 | - $lineAndString = rtrim(quoted_printable_encode($this->lastLine . $string), "\r\n"); |
|
140 | + $lineAndString = rtrim(quoted_printable_encode($this->lastLine.$string), "\r\n"); |
|
141 | 141 | $write = substr($lineAndString, strlen($encodedLine)); |
142 | 142 | $this->writeRaw($write); |
143 | 143 | $this->position += strlen($string); |