Passed
Pull Request — master (#72)
by Lars
18:04 queued 15:01
created
src/voku/helper/data/x18.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]',
20 20
 ];
21 21
 
22
-$result =& $data;
22
+$result = & $data;
23 23
 unset($data);
24 24
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/Bootup.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
     $uri = (string)\preg_replace_callback(
97 97
         '/[\x80-\xFF]+/',
98
-        function ($m) {
98
+        function($m) {
99 99
           return \rawurlencode($m[0]);
100 100
         },
101 101
         $uri
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
     $uri = (string)\preg_replace_callback(
105 105
         '/(?:%[89A-F][0-9A-F])+/i',
106
-        function ($m) {
106
+        function($m) {
107 107
           return \rawurlencode(UTF8::rawurldecode($m[0]));
108 108
         },
109 109
         $uri
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
     ) {
119 119
       // Use ob_start() to buffer content and avoid problem of headers already sent...
120 120
       $severProtocol = ($_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.1');
121
-      \header($severProtocol . ' 301 Moved Permanently');
122
-      \header('Location: ' . $uri);
121
+      \header($severProtocol.' 301 Moved Permanently');
122
+      \header('Location: '.$uri);
123 123
       exit();
124 124
     }
125 125
 
Please login to merge, or discard this patch.
src/voku/helper/UTF8.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -559,16 +559,16 @@  discard block
 block discarded – undo
559 559
       $chr = self::$CHR[$code_point];
560 560
     } elseif ($code_point <= 0x7FF) {
561 561
       $chr = self::$CHR[($code_point >> 6) + 0xC0] .
562
-             self::$CHR[($code_point & 0x3F) + 0x80];
562
+              self::$CHR[($code_point & 0x3F) + 0x80];
563 563
     } elseif ($code_point <= 0xFFFF) {
564 564
       $chr = self::$CHR[($code_point >> 12) + 0xE0] .
565
-             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
566
-             self::$CHR[($code_point & 0x3F) + 0x80];
565
+              self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
566
+              self::$CHR[($code_point & 0x3F) + 0x80];
567 567
     } else {
568 568
       $chr = self::$CHR[($code_point >> 18) + 0xF0] .
569
-             self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
570
-             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
571
-             self::$CHR[($code_point & 0x3F) + 0x80];
569
+              self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
570
+              self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
571
+              self::$CHR[($code_point & 0x3F) + 0x80];
572 572
     }
573 573
 
574 574
     if ($encoding !== 'UTF-8') {
@@ -2875,10 +2875,10 @@  discard block
 block discarded – undo
2875 2875
 
2876 2876
     /** @noinspection PhpComposerExtensionStubsInspection */
2877 2877
     return (
2878
-               \is_object($json) === true
2878
+                \is_object($json) === true
2879 2879
                ||
2880 2880
                \is_array($json) === true
2881
-           )
2881
+            )
2882 2882
            &&
2883 2883
            \json_last_error() === JSON_ERROR_NONE;
2884 2884
   }
Please login to merge, or discard this patch.
Spacing   +118 added lines, -119 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
   public static function add_bom_to_string(string $str): string
244 244
   {
245 245
     if (self::string_has_bom($str) === false) {
246
-      $str = self::bom() . $str;
246
+      $str = self::bom().$str;
247 247
     }
248 248
 
249 249
     return $str;
@@ -510,10 +510,10 @@  discard block
 block discarded – undo
510 510
         &&
511 511
         self::$SUPPORT['mbstring'] === false
512 512
     ) {
513
-      \trigger_error('UTF8::chr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
513
+      \trigger_error('UTF8::chr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
514 514
     }
515 515
 
516
-    $cacheKey = $code_point . $encoding;
516
+    $cacheKey = $code_point.$encoding;
517 517
     if (isset($CHAR_CACHE[$cacheKey]) === true) {
518 518
       return $CHAR_CACHE[$cacheKey];
519 519
     }
@@ -558,16 +558,16 @@  discard block
 block discarded – undo
558 558
     if ($code_point <= 0x7F) {
559 559
       $chr = self::$CHR[$code_point];
560 560
     } elseif ($code_point <= 0x7FF) {
561
-      $chr = self::$CHR[($code_point >> 6) + 0xC0] .
561
+      $chr = self::$CHR[($code_point >> 6) + 0xC0].
562 562
              self::$CHR[($code_point & 0x3F) + 0x80];
563 563
     } elseif ($code_point <= 0xFFFF) {
564
-      $chr = self::$CHR[($code_point >> 12) + 0xE0] .
565
-             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
564
+      $chr = self::$CHR[($code_point >> 12) + 0xE0].
565
+             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80].
566 566
              self::$CHR[($code_point & 0x3F) + 0x80];
567 567
     } else {
568
-      $chr = self::$CHR[($code_point >> 18) + 0xF0] .
569
-             self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
570
-             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
568
+      $chr = self::$CHR[($code_point >> 18) + 0xF0].
569
+             self::$CHR[(($code_point >> 12) & 0x3F) + 0x80].
570
+             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80].
571 571
              self::$CHR[($code_point & 0x3F) + 0x80];
572 572
     }
573 573
 
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
 
616 616
     if (self::$SUPPORT['mbstring_func_overload'] === true) {
617 617
       return \array_map(
618
-          function ($data) {
618
+          function($data) {
619 619
             return UTF8::strlen($data, 'CP850'); // 8-BIT
620 620
           },
621 621
           $strSplit
@@ -927,7 +927,7 @@  discard block
 block discarded – undo
927 927
    */
928 928
   public static function decimal_to_chr($int): string
929 929
   {
930
-    return self::html_entity_decode('&#' . $int . ';', ENT_QUOTES | ENT_HTML5);
930
+    return self::html_entity_decode('&#'.$int.';', ENT_QUOTES | ENT_HTML5);
931 931
   }
932 932
 
933 933
   /**
@@ -1007,7 +1007,7 @@  discard block
 block discarded – undo
1007 1007
           &&
1008 1008
           self::$SUPPORT['mbstring'] === false
1009 1009
       ) {
1010
-        \trigger_error('UTF8::encode() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
1010
+        \trigger_error('UTF8::encode() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
1011 1011
       }
1012 1012
 
1013 1013
       $strEncoded = \mb_convert_encoding(
@@ -1068,7 +1068,7 @@  discard block
 block discarded – undo
1068 1068
           return '';
1069 1069
         }
1070 1070
 
1071
-        return \rtrim($strSub, $trimChars) . $replacerForSkippedText;
1071
+        return \rtrim($strSub, $trimChars).$replacerForSkippedText;
1072 1072
       }
1073 1073
 
1074 1074
       return $str;
@@ -1104,14 +1104,14 @@  discard block
 block discarded – undo
1104 1104
       if (!$pos_end || $pos_end <= 0) {
1105 1105
         $strSub = self::substr($str, $pos_start, self::strlen($str), $encoding);
1106 1106
         if ($strSub !== false) {
1107
-          $extract = $replacerForSkippedText . \ltrim($strSub, $trimChars);
1107
+          $extract = $replacerForSkippedText.\ltrim($strSub, $trimChars);
1108 1108
         } else {
1109 1109
           $extract = '';
1110 1110
         }
1111 1111
       } else {
1112 1112
         $strSub = self::substr($str, $pos_start, $pos_end, $encoding);
1113 1113
         if ($strSub !== false) {
1114
-          $extract = $replacerForSkippedText . \trim($strSub, $trimChars) . $replacerForSkippedText;
1114
+          $extract = $replacerForSkippedText.\trim($strSub, $trimChars).$replacerForSkippedText;
1115 1115
         } else {
1116 1116
           $extract = '';
1117 1117
         }
@@ -1134,7 +1134,7 @@  discard block
 block discarded – undo
1134 1134
       if ($pos_end) {
1135 1135
         $strSub = self::substr($str, 0, $pos_end, $encoding);
1136 1136
         if ($strSub !== false) {
1137
-          $extract = \rtrim($strSub, $trimChars) . $replacerForSkippedText;
1137
+          $extract = \rtrim($strSub, $trimChars).$replacerForSkippedText;
1138 1138
         } else {
1139 1139
           $extract = '';
1140 1140
         }
@@ -1252,7 +1252,7 @@  discard block
 block discarded – undo
1252 1252
   {
1253 1253
     $file_content = \file_get_contents($file_path);
1254 1254
     if ($file_content === false) {
1255
-      throw new \RuntimeException('file_get_contents() returned false for:' . $file_path);
1255
+      throw new \RuntimeException('file_get_contents() returned false for:'.$file_path);
1256 1256
     }
1257 1257
 
1258 1258
     return self::string_has_bom($file_content);
@@ -1312,7 +1312,7 @@  discard block
 block discarded – undo
1312 1312
           ) {
1313 1313
             // Prevent leading combining chars
1314 1314
             // for NFC-safe concatenations.
1315
-            $var = $leading_combining . $var;
1315
+            $var = $leading_combining.$var;
1316 1316
           }
1317 1317
         }
1318 1318
 
@@ -1764,7 +1764,7 @@  discard block
 block discarded – undo
1764 1764
    */
1765 1765
   private static function getData(string $file)
1766 1766
   {
1767
-    $file = __DIR__ . '/data/' . $file . '.php';
1767
+    $file = __DIR__.'/data/'.$file.'.php';
1768 1768
     if (\file_exists($file)) {
1769 1769
       /** @noinspection PhpIncludeInspection */
1770 1770
       return require $file;
@@ -1842,16 +1842,16 @@  discard block
 block discarded – undo
1842 1842
    */
1843 1843
   public static function get_unique_string($entropyExtra = '', bool $md5 = true): string
1844 1844
   {
1845
-    $uniqueHelper = \mt_rand() .
1846
-                    \session_id() .
1847
-                    ($_SERVER['REMOTE_ADDR'] ?? '') .
1848
-                    ($_SERVER['SERVER_ADDR'] ?? '') .
1845
+    $uniqueHelper = \mt_rand().
1846
+                    \session_id().
1847
+                    ($_SERVER['REMOTE_ADDR'] ?? '').
1848
+                    ($_SERVER['SERVER_ADDR'] ?? '').
1849 1849
                     $entropyExtra;
1850 1850
 
1851 1851
     $uniqueString = \uniqid($uniqueHelper, true);
1852 1852
 
1853 1853
     if ($md5) {
1854
-      $uniqueString = \md5($uniqueString . $uniqueHelper);
1854
+      $uniqueString = \md5($uniqueString.$uniqueHelper);
1855 1855
     }
1856 1856
 
1857 1857
     return $uniqueString;
@@ -1986,7 +1986,7 @@  discard block
 block discarded – undo
1986 1986
     return \implode(
1987 1987
         '',
1988 1988
         \array_map(
1989
-            function ($data) use ($keepAsciiChars, $encoding) {
1989
+            function($data) use ($keepAsciiChars, $encoding) {
1990 1990
               return UTF8::single_chr_html_encode($data, $keepAsciiChars, $encoding);
1991 1991
             },
1992 1992
             self::split($str)
@@ -2102,7 +2102,7 @@  discard block
 block discarded – undo
2102 2102
         &&
2103 2103
         self::$SUPPORT['mbstring'] === false
2104 2104
     ) {
2105
-      \trigger_error('UTF8::html_entity_decode() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
2105
+      \trigger_error('UTF8::html_entity_decode() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
2106 2106
     }
2107 2107
 
2108 2108
     do {
@@ -2110,7 +2110,7 @@  discard block
 block discarded – undo
2110 2110
 
2111 2111
       $str = (string)\preg_replace_callback(
2112 2112
           "/&#\d{2,6};/",
2113
-          function ($matches) use ($encoding) {
2113
+          function($matches) use ($encoding) {
2114 2114
             $returnTmp = \mb_convert_encoding($matches[0], $encoding, 'HTML-ENTITIES');
2115 2115
 
2116 2116
             if ($returnTmp !== '"' && $returnTmp !== "'") {
@@ -2450,9 +2450,9 @@  discard block
 block discarded – undo
2450 2450
   {
2451 2451
     $hex = \dechex($int);
2452 2452
 
2453
-    $hex = (\strlen($hex) < 4 ? \substr('0000' . $hex, -4) : $hex);
2453
+    $hex = (\strlen($hex) < 4 ? \substr('0000'.$hex, -4) : $hex);
2454 2454
 
2455
-    return $pfix . $hex . '';
2455
+    return $pfix.$hex.'';
2456 2456
   }
2457 2457
 
2458 2458
   /**
@@ -3363,7 +3363,7 @@  discard block
 block discarded – undo
3363 3363
         $cleanUtf8
3364 3364
     );
3365 3365
 
3366
-    return $strPartOne . $strPartTwo;
3366
+    return $strPartOne.$strPartTwo;
3367 3367
   }
3368 3368
 
3369 3369
   /**
@@ -3820,7 +3820,7 @@  discard block
 block discarded – undo
3820 3820
       }
3821 3821
     }
3822 3822
 
3823
-    $cacheKey = $chr_orig . $encoding;
3823
+    $cacheKey = $chr_orig.$encoding;
3824 3824
     if (isset($CHAR_CACHE[$cacheKey]) === true) {
3825 3825
       return $CHAR_CACHE[$cacheKey];
3826 3826
     }
@@ -4062,7 +4062,7 @@  discard block
 block discarded – undo
4062 4062
     }
4063 4063
 
4064 4064
     $str = (string)\preg_replace(
4065
-        $delimiter . $pattern . $delimiter . 'u' . $options,
4065
+        $delimiter.$pattern.$delimiter.'u'.$options,
4066 4066
         $replacement,
4067 4067
         $str
4068 4068
     );
@@ -4129,7 +4129,7 @@  discard block
 block discarded – undo
4129 4129
     if (\is_array($what) === true) {
4130 4130
       /** @noinspection ForeachSourceInspection */
4131 4131
       foreach ($what as $item) {
4132
-        $str = (string)\preg_replace('/(' . \preg_quote($item, '/') . ')+/', $item, $str);
4132
+        $str = (string)\preg_replace('/('.\preg_quote($item, '/').')+/', $item, $str);
4133 4133
       }
4134 4134
     }
4135 4135
 
@@ -4370,7 +4370,7 @@  discard block
 block discarded – undo
4370 4370
   {
4371 4371
     static $RX_CLASSS_CACHE = [];
4372 4372
 
4373
-    $cacheKey = $s . $class;
4373
+    $cacheKey = $s.$class;
4374 4374
 
4375 4375
     if (isset($RX_CLASSS_CACHE[$cacheKey])) {
4376 4376
       return $RX_CLASSS_CACHE[$cacheKey];
@@ -4382,7 +4382,7 @@  discard block
 block discarded – undo
4382 4382
     /** @noinspection SuspiciousLoopInspection */
4383 4383
     foreach (self::str_split($s) as $s) {
4384 4384
       if ('-' === $s) {
4385
-        $class[0] = '-' . $class[0];
4385
+        $class[0] = '-'.$class[0];
4386 4386
       } elseif (!isset($s[2])) {
4387 4387
         $class[0] .= \preg_quote($s, '/');
4388 4388
       } elseif (1 === self::strlen($s)) {
@@ -4393,13 +4393,13 @@  discard block
 block discarded – undo
4393 4393
     }
4394 4394
 
4395 4395
     if ($class[0]) {
4396
-      $class[0] = '[' . $class[0] . ']';
4396
+      $class[0] = '['.$class[0].']';
4397 4397
     }
4398 4398
 
4399 4399
     if (1 === \count($class)) {
4400 4400
       $return = $class[0];
4401 4401
     } else {
4402
-      $return = '(?:' . \implode('|', $class) . ')';
4402
+      $return = '(?:'.\implode('|', $class).')';
4403 4403
     }
4404 4404
 
4405 4405
     $RX_CLASSS_CACHE[$cacheKey] = $return;
@@ -4418,7 +4418,7 @@  discard block
 block discarded – undo
4418 4418
 
4419 4419
     echo '<pre>';
4420 4420
     foreach (self::$SUPPORT as $key => $value) {
4421
-      echo $key . ' - ' . \print_r($value, true) . "\n<br>";
4421
+      echo $key.' - '.\print_r($value, true)."\n<br>";
4422 4422
     }
4423 4423
     echo '</pre>';
4424 4424
   }
@@ -4450,7 +4450,7 @@  discard block
 block discarded – undo
4450 4450
       $encoding = self::normalize_encoding($encoding, 'UTF-8');
4451 4451
     }
4452 4452
 
4453
-    return '&#' . self::ord($char, $encoding) . ';';
4453
+    return '&#'.self::ord($char, $encoding).';';
4454 4454
   }
4455 4455
 
4456 4456
   /**
@@ -4522,7 +4522,7 @@  discard block
 block discarded – undo
4522 4522
         ) {
4523 4523
 
4524 4524
           if (($str[$i + 1] & "\xC0") === "\x80") {
4525
-            $ret[] = $str[$i] . $str[$i + 1];
4525
+            $ret[] = $str[$i].$str[$i + 1];
4526 4526
 
4527 4527
             $i++;
4528 4528
           }
@@ -4538,7 +4538,7 @@  discard block
 block discarded – undo
4538 4538
               &&
4539 4539
               ($str[$i + 2] & "\xC0") === "\x80"
4540 4540
           ) {
4541
-            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2];
4541
+            $ret[] = $str[$i].$str[$i + 1].$str[$i + 2];
4542 4542
 
4543 4543
             $i += 2;
4544 4544
           }
@@ -4556,7 +4556,7 @@  discard block
 block discarded – undo
4556 4556
               &&
4557 4557
               ($str[$i + 3] & "\xC0") === "\x80"
4558 4558
           ) {
4559
-            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];
4559
+            $ret[] = $str[$i].$str[$i + 1].$str[$i + 2].$str[$i + 3];
4560 4560
 
4561 4561
             $i += 3;
4562 4562
           }
@@ -4569,7 +4569,7 @@  discard block
 block discarded – undo
4569 4569
       $ret = \array_chunk($ret, $length);
4570 4570
 
4571 4571
       return \array_map(
4572
-          function ($item) {
4572
+          function($item) {
4573 4573
             return \implode('', $item);
4574 4574
           }, $ret
4575 4575
       );
@@ -4599,7 +4599,7 @@  discard block
 block discarded – undo
4599 4599
 
4600 4600
     $str = (string)\preg_replace_callback(
4601 4601
         '/[-_\s]+(.)?/u',
4602
-        function ($match) use ($encoding) {
4602
+        function($match) use ($encoding) {
4603 4603
           if (isset($match[1])) {
4604 4604
             return UTF8::strtoupper($match[1], $encoding);
4605 4605
           }
@@ -4611,7 +4611,7 @@  discard block
 block discarded – undo
4611 4611
 
4612 4612
     $str = (string)\preg_replace_callback(
4613 4613
         '/[\d]+(.)?/u',
4614
-        function ($match) use ($encoding) {
4614
+        function($match) use ($encoding) {
4615 4615
           return UTF8::strtoupper($match[0], $encoding);
4616 4616
         },
4617 4617
         $str
@@ -4955,7 +4955,7 @@  discard block
 block discarded – undo
4955 4955
     foreach (self::$ENCODINGS as $encodingTmp) {
4956 4956
       # INFO: //IGNORE but still throw notice
4957 4957
       /** @noinspection PhpUsageOfSilenceOperatorInspection */
4958
-      if (\md5((string)@\iconv($encodingTmp, $encodingTmp . '//IGNORE', $str)) === $md5) {
4958
+      if (\md5((string)@\iconv($encodingTmp, $encodingTmp.'//IGNORE', $str)) === $md5) {
4959 4959
         return $encodingTmp;
4960 4960
       }
4961 4961
     }
@@ -5017,7 +5017,7 @@  discard block
 block discarded – undo
5017 5017
   public static function str_ensure_left(string $str, string $substring): string
5018 5018
   {
5019 5019
     if (!self::str_starts_with($str, $substring)) {
5020
-      $str = $substring . $str;
5020
+      $str = $substring.$str;
5021 5021
     }
5022 5022
 
5023 5023
     return $str;
@@ -5226,7 +5226,7 @@  discard block
 block discarded – undo
5226 5226
     $start = self::substr($str, 0, $index, $encoding);
5227 5227
     $end = self::substr($str, $index, $len, $encoding);
5228 5228
 
5229
-    return $start . $substring . $end;
5229
+    return $start.$substring.$end;
5230 5230
   }
5231 5231
 
5232 5232
   /**
@@ -5263,7 +5263,7 @@  discard block
 block discarded – undo
5263 5263
       if ('' === $s .= '') {
5264 5264
         $s = '/^(?<=.)$/';
5265 5265
       } else {
5266
-        $s = '/' . \preg_quote($s, '/') . '/ui';
5266
+        $s = '/'.\preg_quote($s, '/').'/ui';
5267 5267
       }
5268 5268
     }
5269 5269
 
@@ -5546,7 +5546,7 @@  discard block
 block discarded – undo
5546 5546
       return $str;
5547 5547
     }
5548 5548
 
5549
-    return self::substr($str, 0, $length - self::strlen($strAddOn), $encoding) . $strAddOn;
5549
+    return self::substr($str, 0, $length - self::strlen($strAddOn), $encoding).$strAddOn;
5550 5550
   }
5551 5551
 
5552 5552
   /**
@@ -5574,7 +5574,7 @@  discard block
 block discarded – undo
5574 5574
     }
5575 5575
 
5576 5576
     if (self::substr($str, $length - 1, 1, $encoding) === ' ') {
5577
-      return self::substr($str, 0, $length - 1, $encoding) . $strAddOn;
5577
+      return self::substr($str, 0, $length - 1, $encoding).$strAddOn;
5578 5578
     }
5579 5579
 
5580 5580
     $str = (string)self::substr($str, 0, $length, $encoding);
@@ -5583,9 +5583,9 @@  discard block
 block discarded – undo
5583 5583
     $new_str = \implode(' ', $array);
5584 5584
 
5585 5585
     if ($new_str === '') {
5586
-      $str = self::substr($str, 0, $length - 1, $encoding) . $strAddOn;
5586
+      $str = self::substr($str, 0, $length - 1, $encoding).$strAddOn;
5587 5587
     } else {
5588
-      $str = $new_str . $strAddOn;
5588
+      $str = $new_str.$strAddOn;
5589 5589
     }
5590 5590
 
5591 5591
     return $str;
@@ -5688,7 +5688,7 @@  discard block
 block discarded – undo
5688 5688
       $char = self::substr($str, -$i, 1, $encoding);
5689 5689
 
5690 5690
       if ($char == self::substr($otherStr, -$i, 1, $encoding)) {
5691
-        $longestCommonSuffix = $char . $longestCommonSuffix;
5691
+        $longestCommonSuffix = $char.$longestCommonSuffix;
5692 5692
       } else {
5693 5693
         break;
5694 5694
       }
@@ -5707,7 +5707,7 @@  discard block
 block discarded – undo
5707 5707
    */
5708 5708
   public static function str_matches_pattern(string $str, string $pattern): bool
5709 5709
   {
5710
-    if (\preg_match('/' . $pattern . '/u', $str)) {
5710
+    if (\preg_match('/'.$pattern.'/u', $str)) {
5711 5711
       return true;
5712 5712
     }
5713 5713
 
@@ -5797,7 +5797,7 @@  discard block
 block discarded – undo
5797 5797
         $pad_type = STR_PAD_BOTH;
5798 5798
       } else {
5799 5799
         throw new \InvalidArgumentException(
5800
-            'Pad expects $padType to be "STR_PAD_*" or ' . "to be one of 'left', 'right' or 'both'"
5800
+            'Pad expects $padType to be "STR_PAD_*" or '."to be one of 'left', 'right' or 'both'"
5801 5801
         );
5802 5802
       }
5803 5803
     }
@@ -5834,7 +5834,7 @@  discard block
 block discarded – undo
5834 5834
           $pre = '';
5835 5835
       }
5836 5836
 
5837
-      return $pre . $str . $post;
5837
+      return $pre.$str.$post;
5838 5838
     }
5839 5839
 
5840 5840
     return $str;
@@ -5962,7 +5962,7 @@  discard block
 block discarded – undo
5962 5962
   {
5963 5963
     return self::regex_replace(
5964 5964
         $str,
5965
-        '^' . \preg_quote($search, '/'),
5965
+        '^'.\preg_quote($search, '/'),
5966 5966
         self::str_replace('\\', '\\\\', $replacement)
5967 5967
     );
5968 5968
   }
@@ -5980,7 +5980,7 @@  discard block
 block discarded – undo
5980 5980
   {
5981 5981
     return self::regex_replace(
5982 5982
         $str,
5983
-        \preg_quote($search, '/') . '$',
5983
+        \preg_quote($search, '/').'$',
5984 5984
         self::str_replace('\\', '\\\\', $replacement)
5985 5985
     );
5986 5986
   }
@@ -6093,24 +6093,24 @@  discard block
 block discarded – undo
6093 6093
 
6094 6094
     $str = (string)\preg_replace_callback(
6095 6095
         '/([\d|A-Z])/u',
6096
-        function ($matches) use ($encoding) {
6096
+        function($matches) use ($encoding) {
6097 6097
           $match = $matches[1];
6098 6098
           $matchInt = (int)$match;
6099 6099
 
6100 6100
           if ((string)$matchInt == $match) {
6101
-            return '_' . $match . '_';
6101
+            return '_'.$match.'_';
6102 6102
           }
6103 6103
 
6104
-          return '_' . UTF8::strtolower($match, $encoding);
6104
+          return '_'.UTF8::strtolower($match, $encoding);
6105 6105
         },
6106 6106
         $str
6107 6107
     );
6108 6108
 
6109 6109
     $str = (string)\preg_replace(
6110 6110
         [
6111
-            '/\s+/',        // convert spaces to "_"
6112
-            '/^\s+|\s+$/',  // trim leading & trailing spaces
6113
-            '/_+/',         // remove double "_"
6111
+            '/\s+/', // convert spaces to "_"
6112
+            '/^\s+|\s+$/', // trim leading & trailing spaces
6113
+            '/_+/', // remove double "_"
6114 6114
         ],
6115 6115
         [
6116 6116
             '_',
@@ -6179,7 +6179,7 @@  discard block
 block discarded – undo
6179 6179
     }
6180 6180
 
6181 6181
     /** @noinspection NotOptimalRegularExpressionsInspection */
6182
-    \preg_match_all('/' . self::GRAPHEME_CLUSTER_RX . '/u', $str, $a);
6182
+    \preg_match_all('/'.self::GRAPHEME_CLUSTER_RX.'/u', $str, $a);
6183 6183
     $a = $a[0];
6184 6184
 
6185 6185
     if ($len === 1) {
@@ -6232,7 +6232,7 @@  discard block
 block discarded – undo
6232 6232
       $limit = -1;
6233 6233
     }
6234 6234
 
6235
-    $array = \preg_split('/' . \preg_quote($pattern, '/') . '/u', $str, $limit);
6235
+    $array = \preg_split('/'.\preg_quote($pattern, '/').'/u', $str, $limit);
6236 6236
 
6237 6237
     if ($array === false) {
6238 6238
       return [];
@@ -6514,7 +6514,7 @@  discard block
 block discarded – undo
6514 6514
 
6515 6515
     $str = (string)\preg_replace_callback(
6516 6516
         '/([\S]+)/u',
6517
-        function ($match) use ($encoding, $ignore) {
6517
+        function($match) use ($encoding, $ignore) {
6518 6518
           if ($ignore && \in_array($match[0], $ignore, true)) {
6519 6519
             return $match[0];
6520 6520
           }
@@ -6583,16 +6583,16 @@  discard block
 block discarded – undo
6583 6583
     $str = (string)\preg_replace_callback(
6584 6584
         '~\b (_*) (?:                                                              # 1. Leading underscore and
6585 6585
                         ( (?<=[ ][/\\\\]) [[:alpha:]]+ [-_[:alpha:]/\\\\]+ |              # 2. file path or 
6586
-                          [-_[:alpha:]]+ [@.:] [-_[:alpha:]@.:/]+ ' . $apostropheRx . ' ) #    URL, domain, or email
6586
+                          [-_[:alpha:]]+ [@.:] [-_[:alpha:]@.:/]+ ' . $apostropheRx.' ) #    URL, domain, or email
6587 6587
                         |
6588
-                        ( (?i: ' . $smallWordsRx . ' ) ' . $apostropheRx . ' )            # 3. or small word (case-insensitive)
6588
+                        ( (?i: ' . $smallWordsRx.' ) '.$apostropheRx.' )            # 3. or small word (case-insensitive)
6589 6589
                         |
6590
-                        ( [[:alpha:]] [[:lower:]\'’()\[\]{}]* ' . $apostropheRx . ' )     # 4. or word w/o internal caps
6590
+                        ( [[:alpha:]] [[:lower:]\'’()\[\]{}]* ' . $apostropheRx.' )     # 4. or word w/o internal caps
6591 6591
                         |
6592
-                        ( [[:alpha:]] [[:alpha:]\'’()\[\]{}]* ' . $apostropheRx . ' )     # 5. or some other word
6592
+                        ( [[:alpha:]] [[:alpha:]\'’()\[\]{}]* ' . $apostropheRx.' )     # 5. or some other word
6593 6593
                       ) (_*) \b                                                           # 6. With trailing underscore
6594 6594
                     ~ux',
6595
-        function ($matches) use ($encoding) {
6595
+        function($matches) use ($encoding) {
6596 6596
           // Preserve leading underscore
6597 6597
           $str = $matches[1];
6598 6598
           if ($matches[2]) {
@@ -6621,21 +6621,21 @@  discard block
 block discarded – undo
6621 6621
         '~(  \A [[:punct:]]*                # start of title...
6622 6622
                       |  [:.;?!][ ]+               # or of subsentence...
6623 6623
                       |  [ ][\'"“‘(\[][ ]* )       # or of inserted subphrase...
6624
-                      ( ' . $smallWordsRx . ' ) \b # ...followed by small word
6624
+                      ( ' . $smallWordsRx.' ) \b # ...followed by small word
6625 6625
                      ~uxi',
6626
-        function ($matches) use ($encoding) {
6627
-          return $matches[1] . static::str_upper_first($matches[2], $encoding);
6626
+        function($matches) use ($encoding) {
6627
+          return $matches[1].static::str_upper_first($matches[2], $encoding);
6628 6628
         },
6629 6629
         $str
6630 6630
     );
6631 6631
 
6632 6632
     // ...and end of title
6633 6633
     $str = (string)\preg_replace_callback(
6634
-        '~\b ( ' . $smallWordsRx . ' ) # small word...
6634
+        '~\b ( '.$smallWordsRx.' ) # small word...
6635 6635
                       (?= [[:punct:]]* \Z     # ...at the end of the title...
6636 6636
                       |   [\'"’”)\]] [ ] )    # ...or of an inserted subphrase?
6637 6637
                      ~uxi',
6638
-        function ($matches) use ($encoding) {
6638
+        function($matches) use ($encoding) {
6639 6639
           return static::str_upper_first($matches[1], $encoding);
6640 6640
         },
6641 6641
         $str
@@ -6646,10 +6646,10 @@  discard block
 block discarded – undo
6646 6646
     $str = (string)\preg_replace_callback(
6647 6647
         '~\b
6648 6648
                         (?<! -)                   # Negative lookbehind for a hyphen; we do not want to match man-in-the-middle but do want (in-flight)
6649
-                        ( ' . $smallWordsRx . ' )
6649
+                        ( ' . $smallWordsRx.' )
6650 6650
                         (?= -[[:alpha:]]+)        # lookahead for "-someword"
6651 6651
                        ~uxi',
6652
-        function ($matches) use ($encoding) {
6652
+        function($matches) use ($encoding) {
6653 6653
           return static::str_upper_first($matches[1], $encoding);
6654 6654
         },
6655 6655
         $str
@@ -6660,11 +6660,11 @@  discard block
 block discarded – undo
6660 6660
         '~\b
6661 6661
                       (?<!…)                    # Negative lookbehind for a hyphen; we do not want to match man-in-the-middle but do want (stand-in)
6662 6662
                       ( [[:alpha:]]+- )         # $1 = first word and hyphen, should already be properly capped
6663
-                      ( ' . $smallWordsRx . ' ) # ...followed by small word
6663
+                      ( ' . $smallWordsRx.' ) # ...followed by small word
6664 6664
                       (?!	- )                   # Negative lookahead for another -
6665 6665
                      ~uxi',
6666
-        function ($matches) use ($encoding) {
6667
-          return $matches[1] . static::str_upper_first($matches[2], $encoding);
6666
+        function($matches) use ($encoding) {
6667
+          return $matches[1].static::str_upper_first($matches[2], $encoding);
6668 6668
         },
6669 6669
         $str
6670 6670
     );
@@ -6814,7 +6814,7 @@  discard block
 block discarded – undo
6814 6814
 
6815 6815
     $truncated = self::substr($str, 0, $length, $encoding);
6816 6816
 
6817
-    return $truncated . $substring;
6817
+    return $truncated.$substring;
6818 6818
   }
6819 6819
 
6820 6820
   /**
@@ -6856,7 +6856,7 @@  discard block
 block discarded – undo
6856 6856
       }
6857 6857
     }
6858 6858
 
6859
-    $str = $truncated . $substring;
6859
+    $str = $truncated.$substring;
6860 6860
 
6861 6861
     return $str;
6862 6862
   }
@@ -7001,7 +7001,7 @@  discard block
 block discarded – undo
7001 7001
   public static function strcmp(string $str1, string $str2): int
7002 7002
   {
7003 7003
     /** @noinspection PhpUndefinedClassInspection */
7004
-    return $str1 . '' === $str2 . '' ? 0 : \strcmp(
7004
+    return $str1.'' === $str2.'' ? 0 : \strcmp(
7005 7005
         \Normalizer::normalize($str1, \Normalizer::NFD),
7006 7006
         \Normalizer::normalize($str2, \Normalizer::NFD)
7007 7007
     );
@@ -7035,7 +7035,7 @@  discard block
 block discarded – undo
7035 7035
       return null;
7036 7036
     }
7037 7037
 
7038
-    if (\preg_match('/^(.*?)' . self::rxClass($charList) . '/us', $str, $length)) {
7038
+    if (\preg_match('/^(.*?)'.self::rxClass($charList).'/us', $str, $length)) {
7039 7039
       return self::strlen($length[1]);
7040 7040
     }
7041 7041
 
@@ -7246,7 +7246,7 @@  discard block
 block discarded – undo
7246 7246
         &&
7247 7247
         self::$SUPPORT['mbstring'] === false
7248 7248
     ) {
7249
-      \trigger_error('UTF8::stristr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
7249
+      \trigger_error('UTF8::stristr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
7250 7250
     }
7251 7251
 
7252 7252
     if (self::$SUPPORT['mbstring'] === true) {
@@ -7265,7 +7265,7 @@  discard block
 block discarded – undo
7265 7265
       return \stristr($haystack, $needle, $before_needle);
7266 7266
     }
7267 7267
 
7268
-    \preg_match('/^(.*?)' . \preg_quote($needle, '/') . '/usi', $haystack, $match);
7268
+    \preg_match('/^(.*?)'.\preg_quote($needle, '/').'/usi', $haystack, $match);
7269 7269
 
7270 7270
     if (!isset($match[1])) {
7271 7271
       return false;
@@ -7331,7 +7331,7 @@  discard block
 block discarded – undo
7331 7331
         &&
7332 7332
         self::$SUPPORT['iconv'] === false
7333 7333
     ) {
7334
-      \trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
7334
+      \trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
7335 7335
     }
7336 7336
 
7337 7337
     if (
@@ -7443,7 +7443,7 @@  discard block
 block discarded – undo
7443 7443
    */
7444 7444
   public static function strnatcmp(string $str1, string $str2): int
7445 7445
   {
7446
-    return $str1 . '' === $str2 . '' ? 0 : \strnatcmp(self::strtonatfold($str1), self::strtonatfold($str2));
7446
+    return $str1.'' === $str2.'' ? 0 : \strnatcmp(self::strtonatfold($str1), self::strtonatfold($str2));
7447 7447
   }
7448 7448
 
7449 7449
   /**
@@ -7503,7 +7503,7 @@  discard block
 block discarded – undo
7503 7503
       return false;
7504 7504
     }
7505 7505
 
7506
-    if (\preg_match('/' . self::rxClass($char_list) . '/us', $haystack, $m)) {
7506
+    if (\preg_match('/'.self::rxClass($char_list).'/us', $haystack, $m)) {
7507 7507
       return \substr($haystack, (int)\strpos($haystack, $m[0]));
7508 7508
     }
7509 7509
 
@@ -7571,7 +7571,7 @@  discard block
 block discarded – undo
7571 7571
         &&
7572 7572
         self::$SUPPORT['mbstring'] === false
7573 7573
     ) {
7574
-      \trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
7574
+      \trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
7575 7575
     }
7576 7576
 
7577 7577
     if (
@@ -7803,7 +7803,7 @@  discard block
 block discarded – undo
7803 7803
         &&
7804 7804
         self::$SUPPORT['mbstring'] === false
7805 7805
     ) {
7806
-      \trigger_error('UTF8::strripos() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
7806
+      \trigger_error('UTF8::strripos() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
7807 7807
     }
7808 7808
 
7809 7809
     if (self::$SUPPORT['mbstring'] === true) {
@@ -7885,7 +7885,7 @@  discard block
 block discarded – undo
7885 7885
         &&
7886 7886
         self::$SUPPORT['mbstring'] === false
7887 7887
     ) {
7888
-      \trigger_error('UTF8::strrpos() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
7888
+      \trigger_error('UTF8::strrpos() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
7889 7889
     }
7890 7890
 
7891 7891
     if (self::$SUPPORT['mbstring'] === true) {
@@ -7960,7 +7960,7 @@  discard block
 block discarded – undo
7960 7960
       return 0;
7961 7961
     }
7962 7962
 
7963
-    return \preg_match('/^' . self::rxClass($mask) . '+/u', $str, $str) ? self::strlen($str[0]) : 0;
7963
+    return \preg_match('/^'.self::rxClass($mask).'+/u', $str, $str) ? self::strlen($str[0]) : 0;
7964 7964
   }
7965 7965
 
7966 7966
   /**
@@ -8004,7 +8004,7 @@  discard block
 block discarded – undo
8004 8004
         &&
8005 8005
         self::$SUPPORT['mbstring'] === false
8006 8006
     ) {
8007
-      \trigger_error('UTF8::strstr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
8007
+      \trigger_error('UTF8::strstr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
8008 8008
     }
8009 8009
 
8010 8010
     if (self::$SUPPORT['mbstring'] === true) {
@@ -8019,7 +8019,7 @@  discard block
 block discarded – undo
8019 8019
       return \grapheme_strstr($haystack, $needle, $before_needle);
8020 8020
     }
8021 8021
 
8022
-    \preg_match('/^(.*?)' . \preg_quote($needle, '/') . '/us', $haystack, $match);
8022
+    \preg_match('/^(.*?)'.\preg_quote($needle, '/').'/us', $haystack, $match);
8023 8023
 
8024 8024
     if (!isset($match[1])) {
8025 8025
       return false;
@@ -8118,9 +8118,9 @@  discard block
 block discarded – undo
8118 8118
 
8119 8119
       if (self::$SUPPORT['intl'] === true) {
8120 8120
 
8121
-        $langCode = $lang . '-Lower';
8121
+        $langCode = $lang.'-Lower';
8122 8122
         if (!\in_array($langCode, self::$SUPPORT['intl__transliterator_list_ids'], true)) {
8123
-          \trigger_error('UTF8::strtolower() cannot handle special language: ' . $lang, E_USER_WARNING);
8123
+          \trigger_error('UTF8::strtolower() cannot handle special language: '.$lang, E_USER_WARNING);
8124 8124
 
8125 8125
           $langCode = 'Any-Lower';
8126 8126
         }
@@ -8129,7 +8129,7 @@  discard block
 block discarded – undo
8129 8129
         return transliterator_transliterate($langCode, $str);
8130 8130
       }
8131 8131
 
8132
-      \trigger_error('UTF8::strtolower() without intl cannot handle the "lang" parameter: ' . $lang, E_USER_WARNING);
8132
+      \trigger_error('UTF8::strtolower() without intl cannot handle the "lang" parameter: '.$lang, E_USER_WARNING);
8133 8133
     }
8134 8134
 
8135 8135
     return \mb_strtolower($str, $encoding);
@@ -8187,9 +8187,9 @@  discard block
 block discarded – undo
8187 8187
 
8188 8188
       if (self::$SUPPORT['intl'] === true) {
8189 8189
 
8190
-        $langCode = $lang . '-Upper';
8190
+        $langCode = $lang.'-Upper';
8191 8191
         if (!\in_array($langCode, self::$SUPPORT['intl__transliterator_list_ids'], true)) {
8192
-          \trigger_error('UTF8::strtoupper() without intl for special language: ' . $lang, E_USER_WARNING);
8192
+          \trigger_error('UTF8::strtoupper() without intl for special language: '.$lang, E_USER_WARNING);
8193 8193
 
8194 8194
           $langCode = 'Any-Upper';
8195 8195
         }
@@ -8198,7 +8198,7 @@  discard block
 block discarded – undo
8198 8198
         return transliterator_transliterate($langCode, $str);
8199 8199
       }
8200 8200
 
8201
-      \trigger_error('UTF8::strtolower() without intl + PHP >= 5.4 cannot handle the "lang"-parameter: ' . $lang, E_USER_WARNING);
8201
+      \trigger_error('UTF8::strtolower() without intl + PHP >= 5.4 cannot handle the "lang"-parameter: '.$lang, E_USER_WARNING);
8202 8202
     }
8203 8203
 
8204 8204
     return \mb_strtoupper($str, $encoding);
@@ -8354,7 +8354,7 @@  discard block
 block discarded – undo
8354 8354
         &&
8355 8355
         self::$SUPPORT['mbstring'] === false
8356 8356
     ) {
8357
-      \trigger_error('UTF8::substr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
8357
+      \trigger_error('UTF8::substr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
8358 8358
     }
8359 8359
 
8360 8360
     if (self::$SUPPORT['mbstring'] === true) {
@@ -8521,14 +8521,14 @@  discard block
 block discarded – undo
8521 8521
         &&
8522 8522
         self::$SUPPORT['mbstring'] === false
8523 8523
     ) {
8524
-      \trigger_error('UTF8::substr_count() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
8524
+      \trigger_error('UTF8::substr_count() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
8525 8525
     }
8526 8526
 
8527 8527
     if (self::$SUPPORT['mbstring'] === true) {
8528 8528
       return \mb_substr_count($haystack, $needle, $encoding);
8529 8529
     }
8530 8530
 
8531
-    \preg_match_all('/' . \preg_quote($needle, '/') . '/us', $haystack, $matches, PREG_SET_ORDER);
8531
+    \preg_match_all('/'.\preg_quote($needle, '/').'/us', $haystack, $matches, PREG_SET_ORDER);
8532 8532
 
8533 8533
     return \count($matches);
8534 8534
   }
@@ -8728,8 +8728,7 @@  discard block
 block discarded – undo
8728 8728
 
8729 8729
     if (self::is_ascii($str)) {
8730 8730
       return ($length === null) ?
8731
-          \substr_replace($str, $replacement, $offset) :
8732
-          \substr_replace($str, $replacement, $offset, $length);
8731
+          \substr_replace($str, $replacement, $offset) : \substr_replace($str, $replacement, $offset, $length);
8733 8732
     }
8734 8733
 
8735 8734
     \preg_match_all('/./us', $str, $smatches);
@@ -9210,7 +9209,7 @@  discard block
 block discarded – undo
9210 9209
           $c2 = $i + 1 >= $max ? "\x00" : $str[$i + 1];
9211 9210
 
9212 9211
           if ($c2 >= "\x80" && $c2 <= "\xBF") { // yeah, almost sure it's UTF8 already
9213
-            $buf .= $c1 . $c2;
9212
+            $buf .= $c1.$c2;
9214 9213
             $i++;
9215 9214
           } else { // not valid UTF8 - convert it
9216 9215
             $buf .= self::to_utf8_convert_helper($c1);
@@ -9222,7 +9221,7 @@  discard block
 block discarded – undo
9222 9221
           $c3 = $i + 2 >= $max ? "\x00" : $str[$i + 2];
9223 9222
 
9224 9223
           if ($c2 >= "\x80" && $c2 <= "\xBF" && $c3 >= "\x80" && $c3 <= "\xBF") { // yeah, almost sure it's UTF8 already
9225
-            $buf .= $c1 . $c2 . $c3;
9224
+            $buf .= $c1.$c2.$c3;
9226 9225
             $i += 2;
9227 9226
           } else { // not valid UTF8 - convert it
9228 9227
             $buf .= self::to_utf8_convert_helper($c1);
@@ -9235,7 +9234,7 @@  discard block
 block discarded – undo
9235 9234
           $c4 = $i + 3 >= $max ? "\x00" : $str[$i + 3];
9236 9235
 
9237 9236
           if ($c2 >= "\x80" && $c2 <= "\xBF" && $c3 >= "\x80" && $c3 <= "\xBF" && $c4 >= "\x80" && $c4 <= "\xBF") { // yeah, almost sure it's UTF8 already
9238
-            $buf .= $c1 . $c2 . $c3 . $c4;
9237
+            $buf .= $c1.$c2.$c3.$c4;
9239 9238
             $i += 3;
9240 9239
           } else { // not valid UTF8 - convert it
9241 9240
             $buf .= self::to_utf8_convert_helper($c1);
@@ -9257,7 +9256,7 @@  discard block
 block discarded – undo
9257 9256
     // decode unicode escape sequences
9258 9257
     $buf = \preg_replace_callback(
9259 9258
         '/\\\\u([0-9a-f]{4})/i',
9260
-        function ($match) {
9259
+        function($match) {
9261 9260
           return \mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE');
9262 9261
         },
9263 9262
         $buf
@@ -9299,7 +9298,7 @@  discard block
 block discarded – undo
9299 9298
     } else {
9300 9299
       $cc1 = self::$CHR[$ordC1 / 64] | "\xC0";
9301 9300
       $cc2 = ((string)$input & "\x3F") | "\x80";
9302
-      $buf .= $cc1 . $cc2;
9301
+      $buf .= $cc1.$cc2;
9303 9302
     }
9304 9303
 
9305 9304
     return $buf;
@@ -9363,7 +9362,7 @@  discard block
 block discarded – undo
9363 9362
         $cleanUtf8
9364 9363
     );
9365 9364
 
9366
-    return $strPartOne . $strPartTwo;
9365
+    return $strPartOne.$strPartTwo;
9367 9366
   }
9368 9367
 
9369 9368
   /**
@@ -9408,7 +9407,7 @@  discard block
 block discarded – undo
9408 9407
       $str = self::clean($str);
9409 9408
     }
9410 9409
 
9411
-    $usePhpDefaultFunctions = !(bool)($charlist . \implode('', $exceptions));
9410
+    $usePhpDefaultFunctions = !(bool)($charlist.\implode('', $exceptions));
9412 9411
 
9413 9412
     if (
9414 9413
         $usePhpDefaultFunctions === true
@@ -9908,7 +9907,7 @@  discard block
 block discarded – undo
9908 9907
       return '';
9909 9908
     }
9910 9909
 
9911
-    \preg_match('/^\s*+(?:\S++\s*+){1,' . $limit . '}/u', $str, $matches);
9910
+    \preg_match('/^\s*+(?:\S++\s*+){1,'.$limit.'}/u', $str, $matches);
9912 9911
 
9913 9912
     if (
9914 9913
         !isset($matches[0])
@@ -9918,7 +9917,7 @@  discard block
 block discarded – undo
9918 9917
       return $str;
9919 9918
     }
9920 9919
 
9921
-    return self::rtrim($matches[0]) . $strAddOn;
9920
+    return self::rtrim($matches[0]).$strAddOn;
9922 9921
   }
9923 9922
 
9924 9923
   /**
@@ -9989,7 +9988,7 @@  discard block
 block discarded – undo
9989 9988
       $strReturn .= $break;
9990 9989
     }
9991 9990
 
9992
-    return $strReturn . \implode('', $chars);
9991
+    return $strReturn.\implode('', $chars);
9993 9992
   }
9994 9993
 
9995 9994
   /**
Please login to merge, or discard this patch.