Passed
Branch master (31d52a)
by Zaahid
05:25
created
Category
src/QuotedPrintableStreamDecorator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Base64StreamDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Util/CharsetConverter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -278,9 +278,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.