Passed
Push — master ( 6eaa7f...c08b92 )
by Lars
04:10
created
src/voku/helper/UTF8.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -629,22 +629,22 @@  discard block
 block discarded – undo
629 629
              * @psalm-suppress PossiblyNullArrayAccess
630 630
              */
631 631
             $chr = self::$CHR[($code_point >> 6) + 0xC0] .
632
-                   self::$CHR[($code_point & 0x3F) + 0x80];
632
+                    self::$CHR[($code_point & 0x3F) + 0x80];
633 633
         } elseif ($code_point <= 0xFFFF) {
634 634
             /**
635 635
              * @psalm-suppress PossiblyNullArrayAccess
636 636
              */
637 637
             $chr = self::$CHR[($code_point >> 12) + 0xE0] .
638
-                   self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
639
-                   self::$CHR[($code_point & 0x3F) + 0x80];
638
+                    self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
639
+                    self::$CHR[($code_point & 0x3F) + 0x80];
640 640
         } else {
641 641
             /**
642 642
              * @psalm-suppress PossiblyNullArrayAccess
643 643
              */
644 644
             $chr = self::$CHR[($code_point >> 18) + 0xF0] .
645
-                   self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
646
-                   self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
647
-                   self::$CHR[($code_point & 0x3F) + 0x80];
645
+                    self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
646
+                    self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
647
+                    self::$CHR[($code_point & 0x3F) + 0x80];
648 648
         }
649 649
 
650 650
         if ($encoding !== 'UTF-8') {
@@ -1131,7 +1131,7 @@  discard block
 block discarded – undo
1131 1131
         $asciiOffset = 0x41;
1132 1132
 
1133 1133
         return (self::chr((self::ord($country_code_iso_3166_1[0]) - $asciiOffset + $flagOffset)) ?? '') .
1134
-               (self::chr((self::ord($country_code_iso_3166_1[1]) - $asciiOffset + $flagOffset)) ?? '');
1134
+                (self::chr((self::ord($country_code_iso_3166_1[1]) - $asciiOffset + $flagOffset)) ?? '');
1135 1135
     }
1136 1136
 
1137 1137
     /**
@@ -2484,10 +2484,10 @@  discard block
 block discarded – undo
2484 2484
         }
2485 2485
 
2486 2486
         $unique_helper = $rand_int .
2487
-                         \session_id() .
2488
-                         ($_SERVER['REMOTE_ADDR'] ?? '') .
2489
-                         ($_SERVER['SERVER_ADDR'] ?? '') .
2490
-                         $extra_entropy;
2487
+                          \session_id() .
2488
+                          ($_SERVER['REMOTE_ADDR'] ?? '') .
2489
+                          ($_SERVER['SERVER_ADDR'] ?? '') .
2490
+                          $extra_entropy;
2491 2491
 
2492 2492
         $unique_string = \uniqid($unique_helper, true);
2493 2493
 
@@ -6346,8 +6346,8 @@  discard block
 block discarded – undo
6346 6346
 
6347 6347
             /** @noinspection UnnecessaryCastingInspection */
6348 6348
             return (string) \mb_substr($str, 0, $index) .
6349
-                   $substring .
6350
-                   (string) \mb_substr($str, $index, $len);
6349
+                    $substring .
6350
+                    (string) \mb_substr($str, $index, $len);
6351 6351
         }
6352 6352
 
6353 6353
         $encoding = self::normalize_encoding($encoding, 'UTF-8');
@@ -6358,8 +6358,8 @@  discard block
 block discarded – undo
6358 6358
         }
6359 6359
 
6360 6360
         return ((string) self::substr($str, 0, $index, $encoding)) .
6361
-               $substring .
6362
-               ((string) self::substr($str, $index, $len, $encoding));
6361
+                $substring .
6362
+                ((string) self::substr($str, $index, $len, $encoding));
6363 6363
     }
6364 6364
 
6365 6365
     /**
@@ -8532,11 +8532,11 @@  discard block
 block discarded – undo
8532 8532
                 if ($use_mb_functions) {
8533 8533
                     if ($encoding === 'UTF-8') {
8534 8534
                         return \mb_strtoupper(\mb_substr($match[0], 0, 1))
8535
-                               . \mb_strtolower(\mb_substr($match[0], 1));
8535
+                                . \mb_strtolower(\mb_substr($match[0], 1));
8536 8536
                     }
8537 8537
 
8538 8538
                     return \mb_strtoupper(\mb_substr($match[0], 0, 1, $encoding), $encoding)
8539
-                           . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding);
8539
+                            . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding);
8540 8540
                 }
8541 8541
 
8542 8542
                 return self::ucfirst(
@@ -8938,13 +8938,13 @@  discard block
 block discarded – undo
8938 8938
         }
8939 8939
 
8940 8940
         return (
8941
-               (string) self::substr(
8942
-                   $str,
8943
-                   0,
8944
-                   $length,
8945
-                   $encoding
8946
-               )
8947
-               ) . $substring;
8941
+                (string) self::substr(
8942
+                    $str,
8943
+                    0,
8944
+                    $length,
8945
+                    $encoding
8946
+                )
8947
+                ) . $substring;
8948 8948
     }
8949 8949
 
8950 8950
     /**
@@ -11979,8 +11979,8 @@  discard block
 block discarded – undo
11979 11979
 
11980 11980
             /** @noinspection AdditionOperationOnArraysInspection */
11981 11981
             return ((string) \mb_substr($str, 0, $offset, $encoding)) .
11982
-                   $replacement .
11983
-                   ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding));
11982
+                    $replacement .
11983
+                    ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding));
11984 11984
         }
11985 11985
 
11986 11986
         //
Please login to merge, or discard this patch.