Passed
Push — master ( 099172...f96fe0 )
by Lars
04:30
created
src/voku/helper/UTF8.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -622,22 +622,22 @@  discard block
 block discarded – undo
622 622
              * @psalm-suppress PossiblyNullArrayAccess
623 623
              */
624 624
             $chr = self::$CHR[($code_point >> 6) + 0xC0] .
625
-                   self::$CHR[($code_point & 0x3F) + 0x80];
625
+                    self::$CHR[($code_point & 0x3F) + 0x80];
626 626
         } elseif ($code_point <= 0xFFFF) {
627 627
             /**
628 628
              * @psalm-suppress PossiblyNullArrayAccess
629 629
              */
630 630
             $chr = self::$CHR[($code_point >> 12) + 0xE0] .
631
-                   self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
632
-                   self::$CHR[($code_point & 0x3F) + 0x80];
631
+                    self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
632
+                    self::$CHR[($code_point & 0x3F) + 0x80];
633 633
         } else {
634 634
             /**
635 635
              * @psalm-suppress PossiblyNullArrayAccess
636 636
              */
637 637
             $chr = self::$CHR[($code_point >> 18) + 0xF0] .
638
-                   self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
639
-                   self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
640
-                   self::$CHR[($code_point & 0x3F) + 0x80];
638
+                    self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
639
+                    self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
640
+                    self::$CHR[($code_point & 0x3F) + 0x80];
641 641
         }
642 642
 
643 643
         if ($encoding !== 'UTF-8') {
@@ -2447,10 +2447,10 @@  discard block
 block discarded – undo
2447 2447
         }
2448 2448
 
2449 2449
         $unique_helper = $rand_int .
2450
-                         \session_id() .
2451
-                         ($_SERVER['REMOTE_ADDR'] ?? '') .
2452
-                         ($_SERVER['SERVER_ADDR'] ?? '') .
2453
-                         $extra_entropy;
2450
+                          \session_id() .
2451
+                          ($_SERVER['REMOTE_ADDR'] ?? '') .
2452
+                          ($_SERVER['SERVER_ADDR'] ?? '') .
2453
+                          $extra_entropy;
2454 2454
 
2455 2455
         $unique_string = \uniqid($unique_helper, true);
2456 2456
 
@@ -6307,8 +6307,8 @@  discard block
 block discarded – undo
6307 6307
 
6308 6308
             /** @noinspection UnnecessaryCastingInspection */
6309 6309
             return (string) \mb_substr($str, 0, $index) .
6310
-                   $substring .
6311
-                   (string) \mb_substr($str, $index, $len);
6310
+                    $substring .
6311
+                    (string) \mb_substr($str, $index, $len);
6312 6312
         }
6313 6313
 
6314 6314
         $encoding = self::normalize_encoding($encoding, 'UTF-8');
@@ -6319,8 +6319,8 @@  discard block
 block discarded – undo
6319 6319
         }
6320 6320
 
6321 6321
         return ((string) self::substr($str, 0, $index, $encoding)) .
6322
-               $substring .
6323
-               ((string) self::substr($str, $index, $len, $encoding));
6322
+                $substring .
6323
+                ((string) self::substr($str, $index, $len, $encoding));
6324 6324
     }
6325 6325
 
6326 6326
     /**
@@ -8492,11 +8492,11 @@  discard block
 block discarded – undo
8492 8492
                 if ($use_mb_functions) {
8493 8493
                     if ($encoding === 'UTF-8') {
8494 8494
                         return \mb_strtoupper(\mb_substr($match[0], 0, 1))
8495
-                               . \mb_strtolower(\mb_substr($match[0], 1));
8495
+                                . \mb_strtolower(\mb_substr($match[0], 1));
8496 8496
                     }
8497 8497
 
8498 8498
                     return \mb_strtoupper(\mb_substr($match[0], 0, 1, $encoding), $encoding)
8499
-                           . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding);
8499
+                            . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding);
8500 8500
                 }
8501 8501
 
8502 8502
                 return self::ucfirst(
@@ -8898,13 +8898,13 @@  discard block
 block discarded – undo
8898 8898
         }
8899 8899
 
8900 8900
         return (
8901
-               (string) self::substr(
8902
-                   $str,
8903
-                   0,
8904
-                   $length,
8905
-                   $encoding
8906
-               )
8907
-               ) . $substring;
8901
+                (string) self::substr(
8902
+                    $str,
8903
+                    0,
8904
+                    $length,
8905
+                    $encoding
8906
+                )
8907
+                ) . $substring;
8908 8908
     }
8909 8909
 
8910 8910
     /**
@@ -11937,8 +11937,8 @@  discard block
 block discarded – undo
11937 11937
 
11938 11938
             /** @noinspection AdditionOperationOnArraysInspection */
11939 11939
             return ((string) \mb_substr($str, 0, $offset, $encoding)) .
11940
-                   $replacement .
11941
-                   ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding));
11940
+                    $replacement .
11941
+                    ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding));
11942 11942
         }
11943 11943
 
11944 11944
         //
Please login to merge, or discard this patch.