Completed
Push — master ( 0e1dca...9d2783 )
by Lars
19s queued 12s
created
src/voku/helper/UTF8.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -602,22 +602,22 @@  discard block
 block discarded – undo
602 602
              * @psalm-suppress PossiblyNullArrayAccess
603 603
              */
604 604
             $chr = self::$CHR[($code_point >> 6) + 0xC0] .
605
-                   self::$CHR[($code_point & 0x3F) + 0x80];
605
+                    self::$CHR[($code_point & 0x3F) + 0x80];
606 606
         } elseif ($code_point <= 0xFFFF) {
607 607
             /**
608 608
              * @psalm-suppress PossiblyNullArrayAccess
609 609
              */
610 610
             $chr = self::$CHR[($code_point >> 12) + 0xE0] .
611
-                   self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
612
-                   self::$CHR[($code_point & 0x3F) + 0x80];
611
+                    self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
612
+                    self::$CHR[($code_point & 0x3F) + 0x80];
613 613
         } else {
614 614
             /**
615 615
              * @psalm-suppress PossiblyNullArrayAccess
616 616
              */
617 617
             $chr = self::$CHR[($code_point >> 18) + 0xF0] .
618
-                   self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
619
-                   self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
620
-                   self::$CHR[($code_point & 0x3F) + 0x80];
618
+                    self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
619
+                    self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
620
+                    self::$CHR[($code_point & 0x3F) + 0x80];
621 621
         }
622 622
 
623 623
         if ($encoding !== 'UTF-8') {
@@ -5804,8 +5804,8 @@  discard block
 block discarded – undo
5804 5804
 
5805 5805
             /** @noinspection UnnecessaryCastingInspection */
5806 5806
             return (string) \mb_substr($str, 0, $index) .
5807
-                   $substring .
5808
-                   (string) \mb_substr($str, $index, $len);
5807
+                    $substring .
5808
+                    (string) \mb_substr($str, $index, $len);
5809 5809
         }
5810 5810
 
5811 5811
         $encoding = self::normalize_encoding($encoding, 'UTF-8');
@@ -5816,8 +5816,8 @@  discard block
 block discarded – undo
5816 5816
         }
5817 5817
 
5818 5818
         return ((string) self::substr($str, 0, $index, $encoding)) .
5819
-               $substring .
5820
-               ((string) self::substr($str, $index, $len, $encoding));
5819
+                $substring .
5820
+                ((string) self::substr($str, $index, $len, $encoding));
5821 5821
     }
5822 5822
 
5823 5823
     /**
@@ -7757,11 +7757,11 @@  discard block
 block discarded – undo
7757 7757
                 if ($useMbFunction === true) {
7758 7758
                     if ($encoding === 'UTF-8') {
7759 7759
                         return \mb_strtoupper(\mb_substr($match[0], 0, 1))
7760
-                               . \mb_strtolower(\mb_substr($match[0], 1));
7760
+                                . \mb_strtolower(\mb_substr($match[0], 1));
7761 7761
                     }
7762 7762
 
7763 7763
                     return \mb_strtoupper(\mb_substr($match[0], 0, 1, $encoding), $encoding)
7764
-                           . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding);
7764
+                            . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding);
7765 7765
                 }
7766 7766
 
7767 7767
                 return self::ucfirst(
@@ -8118,13 +8118,13 @@  discard block
 block discarded – undo
8118 8118
         }
8119 8119
 
8120 8120
         return (
8121
-               (string) self::substr(
8122
-                   $str,
8123
-                   0,
8124
-                   $length,
8125
-                   $encoding
8126
-               )
8127
-               ) . $substring;
8121
+                (string) self::substr(
8122
+                    $str,
8123
+                    0,
8124
+                    $length,
8125
+                    $encoding
8126
+                )
8127
+                ) . $substring;
8128 8128
     }
8129 8129
 
8130 8130
     /**
@@ -10864,8 +10864,8 @@  discard block
 block discarded – undo
10864 10864
 
10865 10865
             /** @noinspection AdditionOperationOnArraysInspection */
10866 10866
             return ((string) \mb_substr($str, 0, $offset, $encoding)) .
10867
-                   $replacement .
10868
-                   ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding));
10867
+                    $replacement .
10868
+                    ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding));
10869 10869
         }
10870 10870
 
10871 10871
         //
Please login to merge, or discard this patch.