Passed
Push — master ( 4704e6...a9ce73 )
by Lars
03:42
created
src/voku/helper/UTF8.php 1 patch
Spacing   +128 added lines, -129 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
   public static function add_bom_to_string(string $str): string
265 265
   {
266 266
     if (self::string_has_bom($str) === false) {
267
-      $str = self::bom() . $str;
267
+      $str = self::bom().$str;
268 268
     }
269 269
 
270 270
     return $str;
@@ -531,10 +531,10 @@  discard block
 block discarded – undo
531 531
         &&
532 532
         self::$SUPPORT['mbstring'] === false
533 533
     ) {
534
-      \trigger_error('UTF8::chr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
534
+      \trigger_error('UTF8::chr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
535 535
     }
536 536
 
537
-    $cacheKey = $code_point . $encoding;
537
+    $cacheKey = $code_point.$encoding;
538 538
     if (isset($CHAR_CACHE[$cacheKey]) === true) {
539 539
       return $CHAR_CACHE[$cacheKey];
540 540
     }
@@ -579,16 +579,16 @@  discard block
 block discarded – undo
579 579
     if ($code_point <= 0x7F) {
580 580
       $chr = self::$CHR[$code_point];
581 581
     } elseif ($code_point <= 0x7FF) {
582
-      $chr = self::$CHR[($code_point >> 6) + 0xC0] .
582
+      $chr = self::$CHR[($code_point >> 6) + 0xC0].
583 583
              self::$CHR[($code_point & 0x3F) + 0x80];
584 584
     } elseif ($code_point <= 0xFFFF) {
585
-      $chr = self::$CHR[($code_point >> 12) + 0xE0] .
586
-             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
585
+      $chr = self::$CHR[($code_point >> 12) + 0xE0].
586
+             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80].
587 587
              self::$CHR[($code_point & 0x3F) + 0x80];
588 588
     } else {
589
-      $chr = self::$CHR[($code_point >> 18) + 0xF0] .
590
-             self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] .
591
-             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] .
589
+      $chr = self::$CHR[($code_point >> 18) + 0xF0].
590
+             self::$CHR[(($code_point >> 12) & 0x3F) + 0x80].
591
+             self::$CHR[(($code_point >> 6) & 0x3F) + 0x80].
592 592
              self::$CHR[($code_point & 0x3F) + 0x80];
593 593
     }
594 594
 
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
 
641 641
     if (self::$SUPPORT['mbstring_func_overload'] === true) {
642 642
       return \array_map(
643
-          function ($data) {
643
+          function($data) {
644 644
             return UTF8::strlen_in_byte($data);
645 645
           },
646 646
           $strSplit
@@ -955,7 +955,7 @@  discard block
 block discarded – undo
955 955
    */
956 956
   public static function decimal_to_chr($int): string
957 957
   {
958
-    return self::html_entity_decode('&#' . $int . ';', ENT_QUOTES | ENT_HTML5);
958
+    return self::html_entity_decode('&#'.$int.';', ENT_QUOTES | ENT_HTML5);
959 959
   }
960 960
 
961 961
   /**
@@ -1111,7 +1111,7 @@  discard block
 block discarded – undo
1111 1111
         &&
1112 1112
         self::$SUPPORT['mbstring'] === false
1113 1113
     ) {
1114
-      \trigger_error('UTF8::encode() without mbstring cannot handle "' . $toEncoding . '" encoding', E_USER_WARNING);
1114
+      \trigger_error('UTF8::encode() without mbstring cannot handle "'.$toEncoding.'" encoding', E_USER_WARNING);
1115 1115
     }
1116 1116
 
1117 1117
     if (!isset(self::$SUPPORT['already_checked_via_portable_utf8'])) {
@@ -1227,7 +1227,7 @@  discard block
 block discarded – undo
1227 1227
           return '';
1228 1228
         }
1229 1229
 
1230
-        return \rtrim($strSub, $trimChars) . $replacerForSkippedText;
1230
+        return \rtrim($strSub, $trimChars).$replacerForSkippedText;
1231 1231
       }
1232 1232
 
1233 1233
       return $str;
@@ -1263,14 +1263,14 @@  discard block
 block discarded – undo
1263 1263
       if (!$pos_end || $pos_end <= 0) {
1264 1264
         $strSub = self::substr($str, $pos_start, self::strlen($str), $encoding);
1265 1265
         if ($strSub !== false) {
1266
-          $extract = $replacerForSkippedText . \ltrim($strSub, $trimChars);
1266
+          $extract = $replacerForSkippedText.\ltrim($strSub, $trimChars);
1267 1267
         } else {
1268 1268
           $extract = '';
1269 1269
         }
1270 1270
       } else {
1271 1271
         $strSub = self::substr($str, $pos_start, $pos_end, $encoding);
1272 1272
         if ($strSub !== false) {
1273
-          $extract = $replacerForSkippedText . \trim($strSub, $trimChars) . $replacerForSkippedText;
1273
+          $extract = $replacerForSkippedText.\trim($strSub, $trimChars).$replacerForSkippedText;
1274 1274
         } else {
1275 1275
           $extract = '';
1276 1276
         }
@@ -1293,7 +1293,7 @@  discard block
 block discarded – undo
1293 1293
       if ($pos_end) {
1294 1294
         $strSub = self::substr($str, 0, $pos_end, $encoding);
1295 1295
         if ($strSub !== false) {
1296
-          $extract = \rtrim($strSub, $trimChars) . $replacerForSkippedText;
1296
+          $extract = \rtrim($strSub, $trimChars).$replacerForSkippedText;
1297 1297
         } else {
1298 1298
           $extract = '';
1299 1299
         }
@@ -1418,7 +1418,7 @@  discard block
 block discarded – undo
1418 1418
   {
1419 1419
     $file_content = \file_get_contents($file_path);
1420 1420
     if ($file_content === false) {
1421
-      throw new \RuntimeException('file_get_contents() returned false for:' . $file_path);
1421
+      throw new \RuntimeException('file_get_contents() returned false for:'.$file_path);
1422 1422
     }
1423 1423
 
1424 1424
     return self::string_has_bom($file_content);
@@ -1478,7 +1478,7 @@  discard block
 block discarded – undo
1478 1478
           ) {
1479 1479
             // Prevent leading combining chars
1480 1480
             // for NFC-safe concatenations.
1481
-            $var = $leading_combining . $var;
1481
+            $var = $leading_combining.$var;
1482 1482
           }
1483 1483
         }
1484 1484
 
@@ -1973,7 +1973,7 @@  discard block
 block discarded – undo
1973 1973
    */
1974 1974
   private static function getData(string $file)
1975 1975
   {
1976
-    $file = __DIR__ . '/data/' . $file . '.php';
1976
+    $file = __DIR__.'/data/'.$file.'.php';
1977 1977
     if (\file_exists($file)) {
1978 1978
       /** @noinspection PhpIncludeInspection */
1979 1979
       return require $file;
@@ -2038,7 +2038,7 @@  discard block
 block discarded – undo
2038 2038
     }
2039 2039
 
2040 2040
     $str_info = \unpack('C2chars', $str_info);
2041
-    $type_code = (int)($str_info['chars1'] . $str_info['chars2']);
2041
+    $type_code = (int)($str_info['chars1'].$str_info['chars2']);
2042 2042
 
2043 2043
     // DEBUG
2044 2044
     //var_dump($type_code);
@@ -2151,16 +2151,16 @@  discard block
 block discarded – undo
2151 2151
    */
2152 2152
   public static function get_unique_string($entropyExtra = '', bool $md5 = true): string
2153 2153
   {
2154
-    $uniqueHelper = \mt_rand() .
2155
-                    \session_id() .
2156
-                    ($_SERVER['REMOTE_ADDR'] ?? '') .
2157
-                    ($_SERVER['SERVER_ADDR'] ?? '') .
2154
+    $uniqueHelper = \mt_rand().
2155
+                    \session_id().
2156
+                    ($_SERVER['REMOTE_ADDR'] ?? '').
2157
+                    ($_SERVER['SERVER_ADDR'] ?? '').
2158 2158
                     $entropyExtra;
2159 2159
 
2160 2160
     $uniqueString = \uniqid($uniqueHelper, true);
2161 2161
 
2162 2162
     if ($md5) {
2163
-      $uniqueString = \md5($uniqueString . $uniqueHelper);
2163
+      $uniqueString = \md5($uniqueString.$uniqueHelper);
2164 2164
     }
2165 2165
 
2166 2166
     return $uniqueString;
@@ -2305,7 +2305,7 @@  discard block
 block discarded – undo
2305 2305
     return \implode(
2306 2306
         '',
2307 2307
         \array_map(
2308
-            function ($chr) use ($keepAsciiChars, $encoding) {
2308
+            function($chr) use ($keepAsciiChars, $encoding) {
2309 2309
               return UTF8::single_chr_html_encode($chr, $keepAsciiChars, $encoding);
2310 2310
             },
2311 2311
             self::split($str)
@@ -2421,7 +2421,7 @@  discard block
 block discarded – undo
2421 2421
         &&
2422 2422
         self::$SUPPORT['mbstring'] === false
2423 2423
     ) {
2424
-      \trigger_error('UTF8::html_entity_decode() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
2424
+      \trigger_error('UTF8::html_entity_decode() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
2425 2425
     }
2426 2426
 
2427 2427
     if (!isset(self::$SUPPORT['already_checked_via_portable_utf8'])) {
@@ -2444,7 +2444,7 @@  discard block
 block discarded – undo
2444 2444
 
2445 2445
         $str = (string)\preg_replace_callback(
2446 2446
             "/&#\d{2,6};/",
2447
-            function ($matches) use ($encoding) {
2447
+            function($matches) use ($encoding) {
2448 2448
               // always fallback via symfony polyfill
2449 2449
               $returnTmp = \mb_convert_encoding($matches[0], $encoding, 'HTML-ENTITIES');
2450 2450
 
@@ -2787,9 +2787,9 @@  discard block
 block discarded – undo
2787 2787
   {
2788 2788
     $hex = \dechex($int);
2789 2789
 
2790
-    $hex = (\strlen($hex) < 4 ? \substr('0000' . $hex, -4) : $hex);
2790
+    $hex = (\strlen($hex) < 4 ? \substr('0000'.$hex, -4) : $hex);
2791 2791
 
2792
-    return $pfix . $hex . '';
2792
+    return $pfix.$hex.'';
2793 2793
   }
2794 2794
 
2795 2795
   /**
@@ -3738,7 +3738,7 @@  discard block
 block discarded – undo
3738 3738
         $tryToKeepStringLength
3739 3739
     );
3740 3740
 
3741
-    return $strPartOne . $strPartTwo;
3741
+    return $strPartOne.$strPartTwo;
3742 3742
   }
3743 3743
 
3744 3744
   /**
@@ -4243,7 +4243,7 @@  discard block
 block discarded – undo
4243 4243
       $encoding = self::normalize_encoding($encoding, 'UTF-8');
4244 4244
     }
4245 4245
 
4246
-    $cacheKey = $chr_orig . $encoding;
4246
+    $cacheKey = $chr_orig.$encoding;
4247 4247
     if (isset($CHAR_CACHE[$cacheKey]) === true) {
4248 4248
       return $CHAR_CACHE[$cacheKey];
4249 4249
     }
@@ -4509,7 +4509,7 @@  discard block
 block discarded – undo
4509 4509
     }
4510 4510
 
4511 4511
     $str = (string)\preg_replace(
4512
-        $delimiter . $pattern . $delimiter . 'u' . $options,
4512
+        $delimiter.$pattern.$delimiter.'u'.$options,
4513 4513
         $replacement,
4514 4514
         $str
4515 4515
     );
@@ -4580,7 +4580,7 @@  discard block
 block discarded – undo
4580 4580
     if (\is_array($what) === true) {
4581 4581
       /** @noinspection ForeachSourceInspection */
4582 4582
       foreach ($what as $item) {
4583
-        $str = (string)\preg_replace('/(' . \preg_quote($item, '/') . ')+/', $item, $str);
4583
+        $str = (string)\preg_replace('/('.\preg_quote($item, '/').')+/', $item, $str);
4584 4584
       }
4585 4585
     }
4586 4586
 
@@ -4828,7 +4828,7 @@  discard block
 block discarded – undo
4828 4828
   {
4829 4829
     static $RX_CLASSS_CACHE = [];
4830 4830
 
4831
-    $cacheKey = $s . $class;
4831
+    $cacheKey = $s.$class;
4832 4832
 
4833 4833
     if (isset($RX_CLASSS_CACHE[$cacheKey])) {
4834 4834
       return $RX_CLASSS_CACHE[$cacheKey];
@@ -4840,7 +4840,7 @@  discard block
 block discarded – undo
4840 4840
     /** @noinspection SuspiciousLoopInspection */
4841 4841
     foreach (self::str_split($s) as $s) {
4842 4842
       if ('-' === $s) {
4843
-        $class[0] = '-' . $class[0];
4843
+        $class[0] = '-'.$class[0];
4844 4844
       } elseif (!isset($s[2])) {
4845 4845
         $class[0] .= \preg_quote($s, '/');
4846 4846
       } elseif (1 === self::strlen($s)) {
@@ -4851,13 +4851,13 @@  discard block
 block discarded – undo
4851 4851
     }
4852 4852
 
4853 4853
     if ($class[0]) {
4854
-      $class[0] = '[' . $class[0] . ']';
4854
+      $class[0] = '['.$class[0].']';
4855 4855
     }
4856 4856
 
4857 4857
     if (1 === \count($class)) {
4858 4858
       $return = $class[0];
4859 4859
     } else {
4860
-      $return = '(?:' . \implode('|', $class) . ')';
4860
+      $return = '(?:'.\implode('|', $class).')';
4861 4861
     }
4862 4862
 
4863 4863
     $RX_CLASSS_CACHE[$cacheKey] = $return;
@@ -4876,7 +4876,7 @@  discard block
 block discarded – undo
4876 4876
 
4877 4877
     echo '<pre>';
4878 4878
     foreach (self::$SUPPORT as $key => $value) {
4879
-      echo $key . ' - ' . \print_r($value, true) . "\n<br>";
4879
+      echo $key.' - '.\print_r($value, true)."\n<br>";
4880 4880
     }
4881 4881
     echo '</pre>';
4882 4882
   }
@@ -4908,7 +4908,7 @@  discard block
 block discarded – undo
4908 4908
       $encoding = self::normalize_encoding($encoding, 'UTF-8');
4909 4909
     }
4910 4910
 
4911
-    return '&#' . self::ord($char, $encoding) . ';';
4911
+    return '&#'.self::ord($char, $encoding).';';
4912 4912
   }
4913 4913
 
4914 4914
   /**
@@ -4995,7 +4995,7 @@  discard block
 block discarded – undo
4995 4995
         ) {
4996 4996
 
4997 4997
           if (($str[$i + 1] & "\xC0") === "\x80") {
4998
-            $ret[] = $str[$i] . $str[$i + 1];
4998
+            $ret[] = $str[$i].$str[$i + 1];
4999 4999
 
5000 5000
             $i++;
5001 5001
           }
@@ -5011,7 +5011,7 @@  discard block
 block discarded – undo
5011 5011
               &&
5012 5012
               ($str[$i + 2] & "\xC0") === "\x80"
5013 5013
           ) {
5014
-            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2];
5014
+            $ret[] = $str[$i].$str[$i + 1].$str[$i + 2];
5015 5015
 
5016 5016
             $i += 2;
5017 5017
           }
@@ -5029,7 +5029,7 @@  discard block
 block discarded – undo
5029 5029
               &&
5030 5030
               ($str[$i + 3] & "\xC0") === "\x80"
5031 5031
           ) {
5032
-            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];
5032
+            $ret[] = $str[$i].$str[$i + 1].$str[$i + 2].$str[$i + 3];
5033 5033
 
5034 5034
             $i += 3;
5035 5035
           }
@@ -5042,7 +5042,7 @@  discard block
 block discarded – undo
5042 5042
       $ret = \array_chunk($ret, $length);
5043 5043
 
5044 5044
       return \array_map(
5045
-          function ($item) {
5045
+          function($item) {
5046 5046
             return \implode('', $item);
5047 5047
           }, $ret
5048 5048
       );
@@ -5075,7 +5075,7 @@  discard block
 block discarded – undo
5075 5075
 
5076 5076
     $str = (string)\preg_replace_callback(
5077 5077
         '/[-_\s]+(.)?/u',
5078
-        function ($match) use ($encoding, $cleanUtf8, $lang, $tryToKeepStringLength) {
5078
+        function($match) use ($encoding, $cleanUtf8, $lang, $tryToKeepStringLength) {
5079 5079
           if (isset($match[1])) {
5080 5080
             return UTF8::strtoupper($match[1], $encoding, $cleanUtf8, $lang, $tryToKeepStringLength);
5081 5081
           }
@@ -5087,7 +5087,7 @@  discard block
 block discarded – undo
5087 5087
 
5088 5088
     $str = (string)\preg_replace_callback(
5089 5089
         '/[\d]+(.)?/u',
5090
-        function ($match) use ($encoding, $cleanUtf8, $lang, $tryToKeepStringLength) {
5090
+        function($match) use ($encoding, $cleanUtf8, $lang, $tryToKeepStringLength) {
5091 5091
           return UTF8::strtoupper($match[0], $encoding, $cleanUtf8, $lang, $tryToKeepStringLength);
5092 5092
         },
5093 5093
         $str
@@ -5466,7 +5466,7 @@  discard block
 block discarded – undo
5466 5466
     foreach (self::$ENCODINGS as $encodingTmp) {
5467 5467
       # INFO: //IGNORE but still throw notice
5468 5468
       /** @noinspection PhpUsageOfSilenceOperatorInspection */
5469
-      if ((string)@\iconv($encodingTmp, $encodingTmp . '//IGNORE', $str) === $str) {
5469
+      if ((string)@\iconv($encodingTmp, $encodingTmp.'//IGNORE', $str) === $str) {
5470 5470
         return $encodingTmp;
5471 5471
       }
5472 5472
     }
@@ -5528,7 +5528,7 @@  discard block
 block discarded – undo
5528 5528
   public static function str_ensure_left(string $str, string $substring): string
5529 5529
   {
5530 5530
     if (!self::str_starts_with($str, $substring)) {
5531
-      $str = $substring . $str;
5531
+      $str = $substring.$str;
5532 5532
     }
5533 5533
 
5534 5534
     return $str;
@@ -5737,7 +5737,7 @@  discard block
 block discarded – undo
5737 5737
     $start = self::substr($str, 0, $index, $encoding);
5738 5738
     $end = self::substr($str, $index, $len, $encoding);
5739 5739
 
5740
-    return $start . $substring . $end;
5740
+    return $start.$substring.$end;
5741 5741
   }
5742 5742
 
5743 5743
   /**
@@ -5775,7 +5775,7 @@  discard block
 block discarded – undo
5775 5775
       if ('' === $s) {
5776 5776
         $s = '/^(?<=.)$/';
5777 5777
       } else {
5778
-        $s = '/' . \preg_quote($s, '/') . '/ui';
5778
+        $s = '/'.\preg_quote($s, '/').'/ui';
5779 5779
       }
5780 5780
     }
5781 5781
 
@@ -6058,7 +6058,7 @@  discard block
 block discarded – undo
6058 6058
       return $str;
6059 6059
     }
6060 6060
 
6061
-    return self::substr($str, 0, $length - self::strlen($strAddOn), $encoding) . $strAddOn;
6061
+    return self::substr($str, 0, $length - self::strlen($strAddOn), $encoding).$strAddOn;
6062 6062
   }
6063 6063
 
6064 6064
   /**
@@ -6086,7 +6086,7 @@  discard block
 block discarded – undo
6086 6086
     }
6087 6087
 
6088 6088
     if (self::substr($str, $length - 1, 1, $encoding) === ' ') {
6089
-      return self::substr($str, 0, $length - 1, $encoding) . $strAddOn;
6089
+      return self::substr($str, 0, $length - 1, $encoding).$strAddOn;
6090 6090
     }
6091 6091
 
6092 6092
     $str = (string)self::substr($str, 0, $length, $encoding);
@@ -6095,9 +6095,9 @@  discard block
 block discarded – undo
6095 6095
     $new_str = \implode(' ', $array);
6096 6096
 
6097 6097
     if ($new_str === '') {
6098
-      $str = self::substr($str, 0, $length - 1, $encoding) . $strAddOn;
6098
+      $str = self::substr($str, 0, $length - 1, $encoding).$strAddOn;
6099 6099
     } else {
6100
-      $str = $new_str . $strAddOn;
6100
+      $str = $new_str.$strAddOn;
6101 6101
     }
6102 6102
 
6103 6103
     return $str;
@@ -6200,7 +6200,7 @@  discard block
 block discarded – undo
6200 6200
       $char = self::substr($str, -$i, 1, $encoding);
6201 6201
 
6202 6202
       if ($char == self::substr($otherStr, -$i, 1, $encoding)) {
6203
-        $longestCommonSuffix = $char . $longestCommonSuffix;
6203
+        $longestCommonSuffix = $char.$longestCommonSuffix;
6204 6204
       } else {
6205 6205
         break;
6206 6206
       }
@@ -6219,7 +6219,7 @@  discard block
 block discarded – undo
6219 6219
    */
6220 6220
   public static function str_matches_pattern(string $str, string $pattern): bool
6221 6221
   {
6222
-    if (\preg_match('/' . $pattern . '/u', $str)) {
6222
+    if (\preg_match('/'.$pattern.'/u', $str)) {
6223 6223
       return true;
6224 6224
     }
6225 6225
 
@@ -6309,7 +6309,7 @@  discard block
 block discarded – undo
6309 6309
         $pad_type = STR_PAD_BOTH;
6310 6310
       } else {
6311 6311
         throw new \InvalidArgumentException(
6312
-            'Pad expects $padType to be "STR_PAD_*" or ' . "to be one of 'left', 'right' or 'both'"
6312
+            'Pad expects $padType to be "STR_PAD_*" or '."to be one of 'left', 'right' or 'both'"
6313 6313
         );
6314 6314
       }
6315 6315
     }
@@ -6346,7 +6346,7 @@  discard block
 block discarded – undo
6346 6346
           $pre = '';
6347 6347
       }
6348 6348
 
6349
-      return $pre . $str . $post;
6349
+      return $pre.$str.$post;
6350 6350
     }
6351 6351
 
6352 6352
     return $str;
@@ -6483,11 +6483,11 @@  discard block
 block discarded – undo
6483 6483
     }
6484 6484
 
6485 6485
     if ('' === $search) {
6486
-      return $str . $replacement;
6486
+      return $str.$replacement;
6487 6487
     }
6488 6488
 
6489 6489
     if (\strpos($str, $search) === 0) {
6490
-      return $replacement . \substr($str, \strlen($search));
6490
+      return $replacement.\substr($str, \strlen($search));
6491 6491
     }
6492 6492
 
6493 6493
     return $str;
@@ -6515,11 +6515,11 @@  discard block
 block discarded – undo
6515 6515
     }
6516 6516
 
6517 6517
     if ('' === $search) {
6518
-      return $str . $replacement;
6518
+      return $str.$replacement;
6519 6519
     }
6520 6520
 
6521 6521
     if (\stripos($str, $search) === 0) {
6522
-      return $replacement . \substr($str, \strlen($search));
6522
+      return $replacement.\substr($str, \strlen($search));
6523 6523
     }
6524 6524
 
6525 6525
     return $str;
@@ -6547,11 +6547,11 @@  discard block
 block discarded – undo
6547 6547
     }
6548 6548
 
6549 6549
     if ('' === $search) {
6550
-      return $str . $replacement;
6550
+      return $str.$replacement;
6551 6551
     }
6552 6552
 
6553 6553
     if (\strpos($str, $search, \strlen($str) - \strlen($search)) !== false) {
6554
-      $str = substr($str, 0, -\strlen($search)) . $replacement;
6554
+      $str = substr($str, 0, -\strlen($search)).$replacement;
6555 6555
     }
6556 6556
 
6557 6557
     return $str;
@@ -6579,11 +6579,11 @@  discard block
 block discarded – undo
6579 6579
     }
6580 6580
 
6581 6581
     if ('' === $search) {
6582
-      return $str . $replacement;
6582
+      return $str.$replacement;
6583 6583
     }
6584 6584
 
6585 6585
     if (\stripos($str, $search, \strlen($str) - \strlen($search)) !== false) {
6586
-      $str = substr($str, 0, -\strlen($search)) . $replacement;
6586
+      $str = substr($str, 0, -\strlen($search)).$replacement;
6587 6587
     }
6588 6588
 
6589 6589
     return $str;
@@ -6695,24 +6695,24 @@  discard block
 block discarded – undo
6695 6695
 
6696 6696
     $str = (string)\preg_replace_callback(
6697 6697
         '/([\d|A-Z])/u',
6698
-        function ($matches) use ($encoding) {
6698
+        function($matches) use ($encoding) {
6699 6699
           $match = $matches[1];
6700 6700
           $matchInt = (int)$match;
6701 6701
 
6702 6702
           if ((string)$matchInt == $match) {
6703
-            return '_' . $match . '_';
6703
+            return '_'.$match.'_';
6704 6704
           }
6705 6705
 
6706
-          return '_' . UTF8::strtolower($match, $encoding);
6706
+          return '_'.UTF8::strtolower($match, $encoding);
6707 6707
         },
6708 6708
         $str
6709 6709
     );
6710 6710
 
6711 6711
     $str = (string)\preg_replace(
6712 6712
         [
6713
-            '/\s+/',        // convert spaces to "_"
6714
-            '/^\s+|\s+$/',  // trim leading & trailing spaces
6715
-            '/_+/',         // remove double "_"
6713
+            '/\s+/', // convert spaces to "_"
6714
+            '/^\s+|\s+$/', // trim leading & trailing spaces
6715
+            '/_+/', // remove double "_"
6716 6716
         ],
6717 6717
         [
6718 6718
             '_',
@@ -6800,7 +6800,7 @@  discard block
 block discarded – undo
6800 6800
       $limit = -1;
6801 6801
     }
6802 6802
 
6803
-    $array = \preg_split('/' . \preg_quote($pattern, '/') . '/u', $str, $limit);
6803
+    $array = \preg_split('/'.\preg_quote($pattern, '/').'/u', $str, $limit);
6804 6804
 
6805 6805
     if ($array === false) {
6806 6806
       return [];
@@ -7179,16 +7179,16 @@  discard block
 block discarded – undo
7179 7179
     $str = (string)\preg_replace_callback(
7180 7180
         '~\b (_*) (?:                                                              # 1. Leading underscore and
7181 7181
                         ( (?<=[ ][/\\\\]) [[:alpha:]]+ [-_[:alpha:]/\\\\]+ |              # 2. file path or 
7182
-                          [-_[:alpha:]]+ [@.:] [-_[:alpha:]@.:/]+ ' . $apostropheRx . ' ) #    URL, domain, or email
7182
+                          [-_[:alpha:]]+ [@.:] [-_[:alpha:]@.:/]+ ' . $apostropheRx.' ) #    URL, domain, or email
7183 7183
                         |
7184
-                        ( (?i: ' . $smallWordsRx . ' ) ' . $apostropheRx . ' )            # 3. or small word (case-insensitive)
7184
+                        ( (?i: ' . $smallWordsRx.' ) '.$apostropheRx.' )            # 3. or small word (case-insensitive)
7185 7185
                         |
7186
-                        ( [[:alpha:]] [[:lower:]\'’()\[\]{}]* ' . $apostropheRx . ' )     # 4. or word w/o internal caps
7186
+                        ( [[:alpha:]] [[:lower:]\'’()\[\]{}]* ' . $apostropheRx.' )     # 4. or word w/o internal caps
7187 7187
                         |
7188
-                        ( [[:alpha:]] [[:alpha:]\'’()\[\]{}]* ' . $apostropheRx . ' )     # 5. or some other word
7188
+                        ( [[:alpha:]] [[:alpha:]\'’()\[\]{}]* ' . $apostropheRx.' )     # 5. or some other word
7189 7189
                       ) (_*) \b                                                           # 6. With trailing underscore
7190 7190
                     ~ux',
7191
-        function ($matches) use ($encoding) {
7191
+        function($matches) use ($encoding) {
7192 7192
           // Preserve leading underscore
7193 7193
           $str = $matches[1];
7194 7194
           if ($matches[2]) {
@@ -7217,21 +7217,21 @@  discard block
 block discarded – undo
7217 7217
         '~(  \A [[:punct:]]*                # start of title...
7218 7218
                       |  [:.;?!][ ]+               # or of subsentence...
7219 7219
                       |  [ ][\'"“‘(\[][ ]* )       # or of inserted subphrase...
7220
-                      ( ' . $smallWordsRx . ' ) \b # ...followed by small word
7220
+                      ( ' . $smallWordsRx.' ) \b # ...followed by small word
7221 7221
                      ~uxi',
7222
-        function ($matches) use ($encoding) {
7223
-          return $matches[1] . static::str_upper_first($matches[2], $encoding);
7222
+        function($matches) use ($encoding) {
7223
+          return $matches[1].static::str_upper_first($matches[2], $encoding);
7224 7224
         },
7225 7225
         $str
7226 7226
     );
7227 7227
 
7228 7228
     // ...and end of title
7229 7229
     $str = (string)\preg_replace_callback(
7230
-        '~\b ( ' . $smallWordsRx . ' ) # small word...
7230
+        '~\b ( '.$smallWordsRx.' ) # small word...
7231 7231
                       (?= [[:punct:]]* \Z     # ...at the end of the title...
7232 7232
                       |   [\'"’”)\]] [ ] )    # ...or of an inserted subphrase?
7233 7233
                      ~uxi',
7234
-        function ($matches) use ($encoding) {
7234
+        function($matches) use ($encoding) {
7235 7235
           return static::str_upper_first($matches[1], $encoding);
7236 7236
         },
7237 7237
         $str
@@ -7242,10 +7242,10 @@  discard block
 block discarded – undo
7242 7242
     $str = (string)\preg_replace_callback(
7243 7243
         '~\b
7244 7244
                         (?<! -)                   # Negative lookbehind for a hyphen; we do not want to match man-in-the-middle but do want (in-flight)
7245
-                        ( ' . $smallWordsRx . ' )
7245
+                        ( ' . $smallWordsRx.' )
7246 7246
                         (?= -[[:alpha:]]+)        # lookahead for "-someword"
7247 7247
                        ~uxi',
7248
-        function ($matches) use ($encoding) {
7248
+        function($matches) use ($encoding) {
7249 7249
           return static::str_upper_first($matches[1], $encoding);
7250 7250
         },
7251 7251
         $str
@@ -7256,11 +7256,11 @@  discard block
 block discarded – undo
7256 7256
         '~\b
7257 7257
                       (?<!…)                    # Negative lookbehind for a hyphen; we do not want to match man-in-the-middle but do want (stand-in)
7258 7258
                       ( [[:alpha:]]+- )         # $1 = first word and hyphen, should already be properly capped
7259
-                      ( ' . $smallWordsRx . ' ) # ...followed by small word
7259
+                      ( ' . $smallWordsRx.' ) # ...followed by small word
7260 7260
                       (?!	- )                   # Negative lookahead for another -
7261 7261
                      ~uxi',
7262
-        function ($matches) use ($encoding) {
7263
-          return $matches[1] . static::str_upper_first($matches[2], $encoding);
7262
+        function($matches) use ($encoding) {
7263
+          return $matches[1].static::str_upper_first($matches[2], $encoding);
7264 7264
         },
7265 7265
         $str
7266 7266
     );
@@ -7410,7 +7410,7 @@  discard block
 block discarded – undo
7410 7410
 
7411 7411
     $truncated = self::substr($str, 0, $length, $encoding);
7412 7412
 
7413
-    return $truncated . $substring;
7413
+    return $truncated.$substring;
7414 7414
   }
7415 7415
 
7416 7416
   /**
@@ -7452,7 +7452,7 @@  discard block
 block discarded – undo
7452 7452
       }
7453 7453
     }
7454 7454
 
7455
-    $str = $truncated . $substring;
7455
+    $str = $truncated.$substring;
7456 7456
 
7457 7457
     return $str;
7458 7458
   }
@@ -7607,7 +7607,7 @@  discard block
 block discarded – undo
7607 7607
   public static function strcmp(string $str1, string $str2): int
7608 7608
   {
7609 7609
     /** @noinspection PhpUndefinedClassInspection */
7610
-    return $str1 . '' === $str2 . '' ? 0 : \strcmp(
7610
+    return $str1.'' === $str2.'' ? 0 : \strcmp(
7611 7611
         \Normalizer::normalize($str1, \Normalizer::NFD),
7612 7612
         \Normalizer::normalize($str2, \Normalizer::NFD)
7613 7613
     );
@@ -7641,7 +7641,7 @@  discard block
 block discarded – undo
7641 7641
       return null;
7642 7642
     }
7643 7643
 
7644
-    if (\preg_match('/^(.*?)' . self::rxClass($charList) . '/us', $str, $length)) {
7644
+    if (\preg_match('/^(.*?)'.self::rxClass($charList).'/us', $str, $length)) {
7645 7645
       return self::strlen($length[1]);
7646 7646
     }
7647 7647
 
@@ -7878,7 +7878,7 @@  discard block
 block discarded – undo
7878 7878
         &&
7879 7879
         self::$SUPPORT['mbstring'] === false
7880 7880
     ) {
7881
-      \trigger_error('UTF8::stristr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
7881
+      \trigger_error('UTF8::stristr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
7882 7882
     }
7883 7883
 
7884 7884
     if (self::$SUPPORT['mbstring'] === true) {
@@ -7900,7 +7900,7 @@  discard block
 block discarded – undo
7900 7900
       return \stristr($haystack, $needle, $before_needle);
7901 7901
     }
7902 7902
 
7903
-    \preg_match('/^(.*?)' . \preg_quote($needle, '/') . '/usi', $haystack, $match);
7903
+    \preg_match('/^(.*?)'.\preg_quote($needle, '/').'/usi', $haystack, $match);
7904 7904
 
7905 7905
     if (!isset($match[1])) {
7906 7906
       return false;
@@ -7967,7 +7967,7 @@  discard block
 block discarded – undo
7967 7967
         &&
7968 7968
         self::$SUPPORT['iconv'] === false
7969 7969
     ) {
7970
-      \trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
7970
+      \trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
7971 7971
     }
7972 7972
 
7973 7973
     //
@@ -8093,7 +8093,7 @@  discard block
 block discarded – undo
8093 8093
    */
8094 8094
   public static function strnatcmp(string $str1, string $str2): int
8095 8095
   {
8096
-    return $str1 . '' === $str2 . '' ? 0 : \strnatcmp(self::strtonatfold($str1), self::strtonatfold($str2));
8096
+    return $str1.'' === $str2.'' ? 0 : \strnatcmp(self::strtonatfold($str1), self::strtonatfold($str2));
8097 8097
   }
8098 8098
 
8099 8099
   /**
@@ -8158,7 +8158,7 @@  discard block
 block discarded – undo
8158 8158
       return false;
8159 8159
     }
8160 8160
 
8161
-    if (\preg_match('/' . self::rxClass($char_list) . '/us', $haystack, $m)) {
8161
+    if (\preg_match('/'.self::rxClass($char_list).'/us', $haystack, $m)) {
8162 8162
       return \substr($haystack, (int)\strpos($haystack, $m[0]));
8163 8163
     }
8164 8164
 
@@ -8230,7 +8230,7 @@  discard block
 block discarded – undo
8230 8230
         &&
8231 8231
         self::$SUPPORT['mbstring'] === false
8232 8232
     ) {
8233
-      \trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
8233
+      \trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
8234 8234
     }
8235 8235
 
8236 8236
     //
@@ -8396,7 +8396,7 @@  discard block
 block discarded – undo
8396 8396
         &&
8397 8397
         self::$SUPPORT['mbstring'] === false
8398 8398
     ) {
8399
-      \trigger_error('UTF8::strrchr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
8399
+      \trigger_error('UTF8::strrchr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
8400 8400
     }
8401 8401
 
8402 8402
     if (self::$SUPPORT['mbstring'] === true) {
@@ -8617,7 +8617,7 @@  discard block
 block discarded – undo
8617 8617
         &&
8618 8618
         self::$SUPPORT['mbstring'] === false
8619 8619
     ) {
8620
-      \trigger_error('UTF8::strripos() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
8620
+      \trigger_error('UTF8::strripos() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
8621 8621
     }
8622 8622
 
8623 8623
     //
@@ -8764,7 +8764,7 @@  discard block
 block discarded – undo
8764 8764
         &&
8765 8765
         self::$SUPPORT['mbstring'] === false
8766 8766
     ) {
8767
-      \trigger_error('UTF8::strrpos() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
8767
+      \trigger_error('UTF8::strrpos() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
8768 8768
     }
8769 8769
 
8770 8770
     //
@@ -8895,7 +8895,7 @@  discard block
 block discarded – undo
8895 8895
       return 0;
8896 8896
     }
8897 8897
 
8898
-    return \preg_match('/^' . self::rxClass($mask) . '+/u', $str, $str) ? self::strlen($str[0]) : 0;
8898
+    return \preg_match('/^'.self::rxClass($mask).'+/u', $str, $str) ? self::strlen($str[0]) : 0;
8899 8899
   }
8900 8900
 
8901 8901
   /**
@@ -8951,7 +8951,7 @@  discard block
 block discarded – undo
8951 8951
         &&
8952 8952
         self::$SUPPORT['mbstring'] === false
8953 8953
     ) {
8954
-      \trigger_error('UTF8::strstr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
8954
+      \trigger_error('UTF8::strstr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
8955 8955
     }
8956 8956
 
8957 8957
     //
@@ -8989,7 +8989,7 @@  discard block
 block discarded – undo
8989 8989
     // fallback via vanilla php
8990 8990
     //
8991 8991
 
8992
-    \preg_match('/^(.*?)' . \preg_quote($needle, '/') . '/us', $haystack, $match);
8992
+    \preg_match('/^(.*?)'.\preg_quote($needle, '/').'/us', $haystack, $match);
8993 8993
 
8994 8994
     if (!isset($match[1])) {
8995 8995
       return false;
@@ -9127,9 +9127,9 @@  discard block
 block discarded – undo
9127 9127
 
9128 9128
       if (self::$SUPPORT['intl'] === true) {
9129 9129
 
9130
-        $langCode = $lang . '-Lower';
9130
+        $langCode = $lang.'-Lower';
9131 9131
         if (!\in_array($langCode, self::$SUPPORT['intl__transliterator_list_ids'], true)) {
9132
-          \trigger_error('UTF8::strtolower() cannot handle special language: ' . $lang, E_USER_WARNING);
9132
+          \trigger_error('UTF8::strtolower() cannot handle special language: '.$lang, E_USER_WARNING);
9133 9133
 
9134 9134
           $langCode = 'Any-Lower';
9135 9135
         }
@@ -9138,7 +9138,7 @@  discard block
 block discarded – undo
9138 9138
         return transliterator_transliterate($langCode, $str);
9139 9139
       }
9140 9140
 
9141
-      \trigger_error('UTF8::strtolower() without intl cannot handle the "lang" parameter: ' . $lang, E_USER_WARNING);
9141
+      \trigger_error('UTF8::strtolower() without intl cannot handle the "lang" parameter: '.$lang, E_USER_WARNING);
9142 9142
     }
9143 9143
 
9144 9144
     // always fallback via symfony polyfill
@@ -9203,9 +9203,9 @@  discard block
 block discarded – undo
9203 9203
 
9204 9204
       if (self::$SUPPORT['intl'] === true) {
9205 9205
 
9206
-        $langCode = $lang . '-Upper';
9206
+        $langCode = $lang.'-Upper';
9207 9207
         if (!\in_array($langCode, self::$SUPPORT['intl__transliterator_list_ids'], true)) {
9208
-          \trigger_error('UTF8::strtoupper() without intl for special language: ' . $lang, E_USER_WARNING);
9208
+          \trigger_error('UTF8::strtoupper() without intl for special language: '.$lang, E_USER_WARNING);
9209 9209
 
9210 9210
           $langCode = 'Any-Upper';
9211 9211
         }
@@ -9214,7 +9214,7 @@  discard block
 block discarded – undo
9214 9214
         return transliterator_transliterate($langCode, $str);
9215 9215
       }
9216 9216
 
9217
-      \trigger_error('UTF8::strtolower() without intl + PHP >= 5.4 cannot handle the "lang"-parameter: ' . $lang, E_USER_WARNING);
9217
+      \trigger_error('UTF8::strtolower() without intl + PHP >= 5.4 cannot handle the "lang"-parameter: '.$lang, E_USER_WARNING);
9218 9218
     }
9219 9219
 
9220 9220
     // always fallback via symfony polyfill
@@ -9421,7 +9421,7 @@  discard block
 block discarded – undo
9421 9421
         &&
9422 9422
         self::$SUPPORT['mbstring'] === false
9423 9423
     ) {
9424
-      \trigger_error('UTF8::substr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
9424
+      \trigger_error('UTF8::substr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
9425 9425
     }
9426 9426
 
9427 9427
     //
@@ -9601,14 +9601,14 @@  discard block
 block discarded – undo
9601 9601
         &&
9602 9602
         self::$SUPPORT['mbstring'] === false
9603 9603
     ) {
9604
-      \trigger_error('UTF8::substr_count() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
9604
+      \trigger_error('UTF8::substr_count() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
9605 9605
     }
9606 9606
 
9607 9607
     if (self::$SUPPORT['mbstring'] === true) {
9608 9608
       return \mb_substr_count($haystack, $needle, $encoding);
9609 9609
     }
9610 9610
 
9611
-    \preg_match_all('/' . \preg_quote($needle, '/') . '/us', $haystack, $matches, PREG_SET_ORDER);
9611
+    \preg_match_all('/'.\preg_quote($needle, '/').'/us', $haystack, $matches, PREG_SET_ORDER);
9612 9612
 
9613 9613
     return \count($matches);
9614 9614
   }
@@ -9933,8 +9933,7 @@  discard block
 block discarded – undo
9933 9933
 
9934 9934
     if (self::is_ascii($str)) {
9935 9935
       return ($length === null) ?
9936
-          \substr_replace($str, $replacement, $offset) :
9937
-          \substr_replace($str, $replacement, $offset, $length);
9936
+          \substr_replace($str, $replacement, $offset) : \substr_replace($str, $replacement, $offset, $length);
9938 9937
     }
9939 9938
 
9940 9939
     if (!isset(self::$SUPPORT['already_checked_via_portable_utf8'])) {
@@ -9960,7 +9959,7 @@  discard block
 block discarded – undo
9960 9959
         $length = $string_length - $offset;
9961 9960
       }
9962 9961
 
9963
-      return self::substr($str, 0, $offset, $encoding) . $replacement . self::substr($str, $offset + $length, $string_length - $offset - $length, $encoding);
9962
+      return self::substr($str, 0, $offset, $encoding).$replacement.self::substr($str, $offset + $length, $string_length - $offset - $length, $encoding);
9964 9963
     }
9965 9964
 
9966 9965
     \preg_match_all('/./us', $str, $smatches);
@@ -10381,9 +10380,9 @@  discard block
 block discarded – undo
10381 10380
 
10382 10381
     $string = (string)\preg_replace(
10383 10382
         [
10384
-            '/[^' . $fallback_char_escaped . '\.\-a-zA-Z0-9\s]/', // 1) remove un-needed chars
10385
-            '/[\s]+/',                                            // 2) convert spaces to $fallback_char
10386
-            '/[' . $fallback_char_escaped . ']+/',                // 3) remove double $fallback_char's
10383
+            '/[^'.$fallback_char_escaped.'\.\-a-zA-Z0-9\s]/', // 1) remove un-needed chars
10384
+            '/[\s]+/', // 2) convert spaces to $fallback_char
10385
+            '/['.$fallback_char_escaped.']+/', // 3) remove double $fallback_char's
10387 10386
         ],
10388 10387
         [
10389 10388
             '',
@@ -10484,7 +10483,7 @@  discard block
 block discarded – undo
10484 10483
           $c2 = $i + 1 >= $max ? "\x00" : $str[$i + 1];
10485 10484
 
10486 10485
           if ($c2 >= "\x80" && $c2 <= "\xBF") { // yeah, almost sure it's UTF8 already
10487
-            $buf .= $c1 . $c2;
10486
+            $buf .= $c1.$c2;
10488 10487
             $i++;
10489 10488
           } else { // not valid UTF8 - convert it
10490 10489
             $buf .= self::to_utf8_convert_helper($c1);
@@ -10496,7 +10495,7 @@  discard block
 block discarded – undo
10496 10495
           $c3 = $i + 2 >= $max ? "\x00" : $str[$i + 2];
10497 10496
 
10498 10497
           if ($c2 >= "\x80" && $c2 <= "\xBF" && $c3 >= "\x80" && $c3 <= "\xBF") { // yeah, almost sure it's UTF8 already
10499
-            $buf .= $c1 . $c2 . $c3;
10498
+            $buf .= $c1.$c2.$c3;
10500 10499
             $i += 2;
10501 10500
           } else { // not valid UTF8 - convert it
10502 10501
             $buf .= self::to_utf8_convert_helper($c1);
@@ -10509,7 +10508,7 @@  discard block
 block discarded – undo
10509 10508
           $c4 = $i + 3 >= $max ? "\x00" : $str[$i + 3];
10510 10509
 
10511 10510
           if ($c2 >= "\x80" && $c2 <= "\xBF" && $c3 >= "\x80" && $c3 <= "\xBF" && $c4 >= "\x80" && $c4 <= "\xBF") { // yeah, almost sure it's UTF8 already
10512
-            $buf .= $c1 . $c2 . $c3 . $c4;
10511
+            $buf .= $c1.$c2.$c3.$c4;
10513 10512
             $i += 3;
10514 10513
           } else { // not valid UTF8 - convert it
10515 10514
             $buf .= self::to_utf8_convert_helper($c1);
@@ -10531,7 +10530,7 @@  discard block
 block discarded – undo
10531 10530
     // decode unicode escape sequences
10532 10531
     $buf = \preg_replace_callback(
10533 10532
         '/\\\\u([0-9a-f]{4})/i',
10534
-        function ($match) {
10533
+        function($match) {
10535 10534
           // always fallback via symfony polyfill
10536 10535
           return \mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE');
10537 10536
         },
@@ -10574,7 +10573,7 @@  discard block
 block discarded – undo
10574 10573
     } else {
10575 10574
       $cc1 = self::$CHR[$ordC1 / 64] | "\xC0";
10576 10575
       $cc2 = ((string)$input & "\x3F") | "\x80";
10577
-      $buf .= $cc1 . $cc2;
10576
+      $buf .= $cc1.$cc2;
10578 10577
     }
10579 10578
 
10580 10579
     return $buf;
@@ -10642,7 +10641,7 @@  discard block
 block discarded – undo
10642 10641
         $tryToKeepStringLength
10643 10642
     );
10644 10643
 
10645
-    return $strPartOne . $strPartTwo;
10644
+    return $strPartOne.$strPartTwo;
10646 10645
   }
10647 10646
 
10648 10647
   /**
@@ -10687,7 +10686,7 @@  discard block
 block discarded – undo
10687 10686
       $str = self::clean($str);
10688 10687
     }
10689 10688
 
10690
-    $usePhpDefaultFunctions = !(bool)($charlist . \implode('', $exceptions));
10689
+    $usePhpDefaultFunctions = !(bool)($charlist.\implode('', $exceptions));
10691 10690
 
10692 10691
     if (
10693 10692
         $usePhpDefaultFunctions === true
@@ -11191,7 +11190,7 @@  discard block
 block discarded – undo
11191 11190
       return '';
11192 11191
     }
11193 11192
 
11194
-    \preg_match('/^\s*+(?:\S++\s*+){1,' . $limit . '}/u', $str, $matches);
11193
+    \preg_match('/^\s*+(?:\S++\s*+){1,'.$limit.'}/u', $str, $matches);
11195 11194
 
11196 11195
     if (
11197 11196
         !isset($matches[0])
@@ -11201,7 +11200,7 @@  discard block
 block discarded – undo
11201 11200
       return $str;
11202 11201
     }
11203 11202
 
11204
-    return self::rtrim($matches[0]) . $strAddOn;
11203
+    return self::rtrim($matches[0]).$strAddOn;
11205 11204
   }
11206 11205
 
11207 11206
   /**
@@ -11272,7 +11271,7 @@  discard block
 block discarded – undo
11272 11271
       $strReturn .= $break;
11273 11272
     }
11274 11273
 
11275
-    return $strReturn . \implode('', $chars);
11274
+    return $strReturn.\implode('', $chars);
11276 11275
   }
11277 11276
 
11278 11277
   /**
Please login to merge, or discard this patch.