@@ -37,11 +37,11 @@ |
||
37 | 37 | */ |
38 | 38 | private function readEncodedChars($length, $pre = '') |
39 | 39 | { |
40 | - $str = $pre . $this->readRaw($length); |
|
40 | + $str = $pre.$this->readRaw($length); |
|
41 | 41 | $len = strlen($str); |
42 | 42 | if ($len > 0 && !preg_match('/^[0-9a-f]{2}$|^[\r\n].$/is', $str)) { |
43 | 43 | $this->seekRaw(-$len, SEEK_CUR); |
44 | - return '3D'; // '=' character |
|
44 | + return '3D'; // '=' character |
|
45 | 45 | } |
46 | 46 | return $str; |
47 | 47 | } |
@@ -207,7 +207,7 @@ |
||
207 | 207 | private function readAlignedBytesAndConcat($length, &$bytes) |
208 | 208 | { |
209 | 209 | $readRaw = intval(($length * 4) / 3); |
210 | - $readRaw -= $readRaw % 4; // leave off partial blocks |
|
210 | + $readRaw -= $readRaw % 4; // leave off partial blocks |
|
211 | 211 | $decoded = base64_decode($this->readAndFilterRawBlock($readRaw)); |
212 | 212 | $length -= strlen($decoded); |
213 | 213 | $this->position += strlen($decoded); |
@@ -278,9 +278,9 @@ discard block |
||
278 | 278 | |
279 | 279 | // maps |
280 | 280 | protected $mappedRequestedCharsets = [ |
281 | - 'UTF-8' => [ true, 'UTF-8' ], |
|
282 | - 'US-ASCII' => [ true, 'US-ASCII' ], |
|
283 | - 'ISO-8859-1' => [ true, 'ISO-8859-1' ], |
|
281 | + 'UTF-8' => [true, 'UTF-8'], |
|
282 | + 'US-ASCII' => [true, 'US-ASCII'], |
|
283 | + 'ISO-8859-1' => [true, 'ISO-8859-1'], |
|
284 | 284 | ]; |
285 | 285 | |
286 | 286 | /** |
@@ -307,14 +307,14 @@ discard block |
||
307 | 307 | if ($str !== '') { |
308 | 308 | if ($fromMbSupported && !$toMbSupported) { |
309 | 309 | $str = mb_convert_encoding($str, 'UTF-8', $from); |
310 | - return iconv('UTF-8', $to . '//TRANSLIT//IGNORE', $str); |
|
310 | + return iconv('UTF-8', $to.'//TRANSLIT//IGNORE', $str); |
|
311 | 311 | } elseif (!$fromMbSupported && $toMbSupported) { |
312 | 312 | $str = iconv($from, 'UTF-8//TRANSLIT//IGNORE', $str); |
313 | 313 | return mb_convert_encoding($str, $to, 'UTF-8'); |
314 | 314 | } elseif ($fromMbSupported && $toMbSupported) { |
315 | 315 | return mb_convert_encoding($str, $to, $from); |
316 | 316 | } |
317 | - return iconv($from, $to . '//TRANSLIT//IGNORE', $str); |
|
317 | + return iconv($from, $to.'//TRANSLIT//IGNORE', $str); |
|
318 | 318 | } |
319 | 319 | return $str; |
320 | 320 | } |