Passed
Push — master ( 28919d...d1592a )
by Lars
03:43
created
src/voku/helper/UTF8.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -623,22 +623,22 @@  discard block
 block discarded – undo
623 623
              * @psalm-suppress PossiblyNullArrayAccess
624 624
              */
625 625
             $chr = self::$CHR[($code_point >> 6) + 0xC0] .
626
-                   self::$CHR[($code_point & 0x3F) + 0x80];
626
+                    self::$CHR[($code_point & 0x3F) + 0x80];
627 627
         } elseif ($code_point <= 0xFFFF) {
628 628
             /**
629 629
              * @psalm-suppress PossiblyNullArrayAccess
630 630
              */
631 631
             $chr = self::$CHR[($code_point >> 12) + 0xE0] .
632
-                   self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
633
-                   self::$CHR[($code_point & 0x3F) + 0x80];
632
+                    self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
633
+                    self::$CHR[($code_point & 0x3F) + 0x80];
634 634
         } else {
635 635
             /**
636 636
              * @psalm-suppress PossiblyNullArrayAccess
637 637
              */
638 638
             $chr = self::$CHR[($code_point >> 18) + 0xF0] .
639
-                   self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
640
-                   self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
641
-                   self::$CHR[($code_point & 0x3F) + 0x80];
639
+                    self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
640
+                    self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
641
+                    self::$CHR[($code_point & 0x3F) + 0x80];
642 642
         }
643 643
 
644 644
         if ($encoding !== 'UTF-8') {
@@ -1125,7 +1125,7 @@  discard block
 block discarded – undo
1125 1125
         $asciiOffset = 0x41;
1126 1126
 
1127 1127
         return self::chr(self::ord($country_code_iso_3166_1[0]) - $asciiOffset + $flagOffset) .
1128
-               self::chr(self::ord($country_code_iso_3166_1[1]) - $asciiOffset + $flagOffset);
1128
+                self::chr(self::ord($country_code_iso_3166_1[1]) - $asciiOffset + $flagOffset);
1129 1129
     }
1130 1130
 
1131 1131
     /**
@@ -2478,10 +2478,10 @@  discard block
 block discarded – undo
2478 2478
         }
2479 2479
 
2480 2480
         $unique_helper = $rand_int .
2481
-                         \session_id() .
2482
-                         ($_SERVER['REMOTE_ADDR'] ?? '') .
2483
-                         ($_SERVER['SERVER_ADDR'] ?? '') .
2484
-                         $extra_entropy;
2481
+                          \session_id() .
2482
+                          ($_SERVER['REMOTE_ADDR'] ?? '') .
2483
+                          ($_SERVER['SERVER_ADDR'] ?? '') .
2484
+                          $extra_entropy;
2485 2485
 
2486 2486
         $unique_string = \uniqid($unique_helper, true);
2487 2487
 
@@ -6339,8 +6339,8 @@  discard block
 block discarded – undo
6339 6339
 
6340 6340
             /** @noinspection UnnecessaryCastingInspection */
6341 6341
             return (string) \mb_substr($str, 0, $index) .
6342
-                   $substring .
6343
-                   (string) \mb_substr($str, $index, $len);
6342
+                    $substring .
6343
+                    (string) \mb_substr($str, $index, $len);
6344 6344
         }
6345 6345
 
6346 6346
         $encoding = self::normalize_encoding($encoding, 'UTF-8');
@@ -6351,8 +6351,8 @@  discard block
 block discarded – undo
6351 6351
         }
6352 6352
 
6353 6353
         return ((string) self::substr($str, 0, $index, $encoding)) .
6354
-               $substring .
6355
-               ((string) self::substr($str, $index, $len, $encoding));
6354
+                $substring .
6355
+                ((string) self::substr($str, $index, $len, $encoding));
6356 6356
     }
6357 6357
 
6358 6358
     /**
@@ -8524,11 +8524,11 @@  discard block
 block discarded – undo
8524 8524
                 if ($use_mb_functions) {
8525 8525
                     if ($encoding === 'UTF-8') {
8526 8526
                         return \mb_strtoupper(\mb_substr($match[0], 0, 1))
8527
-                               . \mb_strtolower(\mb_substr($match[0], 1));
8527
+                                . \mb_strtolower(\mb_substr($match[0], 1));
8528 8528
                     }
8529 8529
 
8530 8530
                     return \mb_strtoupper(\mb_substr($match[0], 0, 1, $encoding), $encoding)
8531
-                           . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding);
8531
+                            . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding);
8532 8532
                 }
8533 8533
 
8534 8534
                 return self::ucfirst(
@@ -8930,13 +8930,13 @@  discard block
 block discarded – undo
8930 8930
         }
8931 8931
 
8932 8932
         return (
8933
-               (string) self::substr(
8934
-                   $str,
8935
-                   0,
8936
-                   $length,
8937
-                   $encoding
8938
-               )
8939
-               ) . $substring;
8933
+                (string) self::substr(
8934
+                    $str,
8935
+                    0,
8936
+                    $length,
8937
+                    $encoding
8938
+                )
8939
+                ) . $substring;
8940 8940
     }
8941 8941
 
8942 8942
     /**
@@ -11969,8 +11969,8 @@  discard block
 block discarded – undo
11969 11969
 
11970 11970
             /** @noinspection AdditionOperationOnArraysInspection */
11971 11971
             return ((string) \mb_substr($str, 0, $offset, $encoding)) .
11972
-                   $replacement .
11973
-                   ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding));
11972
+                    $replacement .
11973
+                    ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding));
11974 11974
         }
11975 11975
 
11976 11976
         //
Please login to merge, or discard this patch.