Completed
Push — master ( a1c48e...664013 )
by Lars
03:16
created
src/voku/helper/UTF8.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -509,16 +509,16 @@  discard block
 block discarded – undo
509 509
       $chr = self::$CHR[$code_point];
510 510
     } elseif ($code_point <= 0x7FF) {
511 511
       $chr = self::$CHR[($code_point >> 6) + 0xC0] .
512
-             self::$CHR[($code_point & 0x3F) + 0x80];
512
+              self::$CHR[($code_point & 0x3F) + 0x80];
513 513
     } elseif ($code_point <= 0xFFFF) {
514 514
       $chr = self::$CHR[($code_point >> 12) + 0xE0] .
515
-             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
516
-             self::$CHR[($code_point & 0x3F) + 0x80];
515
+              self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
516
+              self::$CHR[($code_point & 0x3F) + 0x80];
517 517
     } else {
518 518
       $chr = self::$CHR[($code_point >> 18) + 0xF0] .
519
-             self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
520
-             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
521
-             self::$CHR[($code_point & 0x3F) + 0x80];
519
+              self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
520
+              self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
521
+              self::$CHR[($code_point & 0x3F) + 0x80];
522 522
     }
523 523
 
524 524
     if ($encoding !== 'UTF-8') {
@@ -1012,9 +1012,9 @@  discard block
 block discarded – undo
1012 1012
 
1013 1013
       if ($pos) {
1014 1014
         return \rtrim(
1015
-                   self::substr($text, 0, $pos, $encoding),
1016
-                   $trimChars
1017
-               ) . $replacerForSkippedText;
1015
+                    self::substr($text, 0, $pos, $encoding),
1016
+                    $trimChars
1017
+                ) . $replacerForSkippedText;
1018 1018
       }
1019 1019
 
1020 1020
       return $text;
@@ -1053,9 +1053,9 @@  discard block
 block discarded – undo
1053 1053
       }
1054 1054
 
1055 1055
       $pos_end = \min(
1056
-                     self::strpos($text, ' ', $l, $encoding),
1057
-                     self::strpos($text, '.', $l, $encoding)
1058
-                 ) - $pos_start;
1056
+                      self::strpos($text, ' ', $l, $encoding),
1057
+                      self::strpos($text, '.', $l, $encoding)
1058
+                  ) - $pos_start;
1059 1059
 
1060 1060
       if (!$pos_end || $pos_end <= 0) {
1061 1061
         $extract = $replacerForSkippedText . \ltrim(
@@ -1095,9 +1095,9 @@  discard block
 block discarded – undo
1095 1095
 
1096 1096
       if ($pos_end) {
1097 1097
         $extract = \rtrim(
1098
-                       self::substr($text, 0, $pos_end, $encoding),
1099
-                       $trimChars
1100
-                   ) . $replacerForSkippedText;
1098
+                        self::substr($text, 0, $pos_end, $encoding),
1099
+                        $trimChars
1100
+                    ) . $replacerForSkippedText;
1101 1101
       } else {
1102 1102
         $extract = $text;
1103 1103
       }
@@ -2808,10 +2808,10 @@  discard block
 block discarded – undo
2808 2808
 
2809 2809
     /** @noinspection PhpComposerExtensionStubsInspection */
2810 2810
     return (
2811
-               \is_object($json) === true
2811
+                \is_object($json) === true
2812 2812
                ||
2813 2813
                \is_array($json) === true
2814
-           )
2814
+            )
2815 2815
            &&
2816 2816
            \json_last_error() === JSON_ERROR_NONE;
2817 2817
   }
Please login to merge, or discard this patch.