@@ -217,6 +217,6 @@ |
||
217 | 217 | ), |
218 | 218 | ); |
219 | 219 | |
220 | -$result =& $data; |
|
220 | +$result = & $data; |
|
221 | 221 | unset($data); |
222 | 222 | return $result; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | if (!preg_match('//u', urldecode($uri))) { |
90 | 90 | $uri = preg_replace_callback( |
91 | 91 | '/[\x80-\xFF]+/', |
92 | - function ($m) { |
|
92 | + function($m) { |
|
93 | 93 | return urlencode($m[0]); |
94 | 94 | }, |
95 | 95 | $uri |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | $uri = preg_replace_callback( |
99 | 99 | '/(?:%[89A-F][0-9A-F])+/i', |
100 | - function ($m) { |
|
100 | + function($m) { |
|
101 | 101 | return urlencode(UTF8::encode('UTF-8', urldecode($m[0]))); |
102 | 102 | }, |
103 | 103 | $uri |
@@ -107,8 +107,8 @@ discard block |
||
107 | 107 | // Use ob_start() to buffer content and avoid problem of headers already sent... |
108 | 108 | if (headers_sent() === false) { |
109 | 109 | $severProtocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1'); |
110 | - header($severProtocol . ' 301 Moved Permanently'); |
|
111 | - header('Location: ' . $uri); |
|
110 | + header($severProtocol.' 301 Moved Permanently'); |
|
111 | + header('Location: '.$uri); |
|
112 | 112 | exit(); |
113 | 113 | } |
114 | 114 | } |
@@ -834,7 +834,7 @@ discard block |
||
834 | 834 | public static function add_bom_to_string($str) |
835 | 835 | { |
836 | 836 | if (self::string_has_bom($str) === false) { |
837 | - $str = self::bom() . $str; |
|
837 | + $str = self::bom().$str; |
|
838 | 838 | } |
839 | 839 | |
840 | 840 | return $str; |
@@ -924,7 +924,7 @@ discard block |
||
924 | 924 | |
925 | 925 | // use static cache, if there is no support for "IntlChar" |
926 | 926 | static $cache = array(); |
927 | - $cacheKey = $code_point . $encoding; |
|
927 | + $cacheKey = $code_point.$encoding; |
|
928 | 928 | if (isset($cache[$cacheKey]) === true) { |
929 | 929 | return $cache[$cacheKey]; |
930 | 930 | } |
@@ -932,16 +932,16 @@ discard block |
||
932 | 932 | if (0x80 > $code_point %= 0x200000) { |
933 | 933 | $str = chr($code_point); |
934 | 934 | } elseif (0x800 > $code_point) { |
935 | - $str = chr(0xC0 | $code_point >> 6) . |
|
935 | + $str = chr(0xC0 | $code_point >> 6). |
|
936 | 936 | chr(0x80 | $code_point & 0x3F); |
937 | 937 | } elseif (0x10000 > $code_point) { |
938 | - $str = chr(0xE0 | $code_point >> 12) . |
|
939 | - chr(0x80 | $code_point >> 6 & 0x3F) . |
|
938 | + $str = chr(0xE0 | $code_point >> 12). |
|
939 | + chr(0x80 | $code_point >> 6 & 0x3F). |
|
940 | 940 | chr(0x80 | $code_point & 0x3F); |
941 | 941 | } else { |
942 | - $str = chr(0xF0 | $code_point >> 18) . |
|
943 | - chr(0x80 | $code_point >> 12 & 0x3F) . |
|
944 | - chr(0x80 | $code_point >> 6 & 0x3F) . |
|
942 | + $str = chr(0xF0 | $code_point >> 18). |
|
943 | + chr(0x80 | $code_point >> 12 & 0x3F). |
|
944 | + chr(0x80 | $code_point >> 6 & 0x3F). |
|
945 | 945 | chr(0x80 | $code_point & 0x3F); |
946 | 946 | } |
947 | 947 | |
@@ -1197,7 +1197,7 @@ discard block |
||
1197 | 1197 | public static function decimal_to_chr($code) |
1198 | 1198 | { |
1199 | 1199 | return \mb_convert_encoding( |
1200 | - '&#x' . dechex($code) . ';', |
|
1200 | + '&#x'.dechex($code).';', |
|
1201 | 1201 | 'UTF-8', |
1202 | 1202 | 'HTML-ENTITIES' |
1203 | 1203 | ); |
@@ -1461,7 +1461,7 @@ discard block |
||
1461 | 1461 | ) { |
1462 | 1462 | // Prevent leading combining chars |
1463 | 1463 | // for NFC-safe concatenations. |
1464 | - $var = $leading_combining . $var; |
|
1464 | + $var = $leading_combining.$var; |
|
1465 | 1465 | } |
1466 | 1466 | } |
1467 | 1467 | break; |
@@ -1755,7 +1755,7 @@ discard block |
||
1755 | 1755 | */ |
1756 | 1756 | private static function getData($file) |
1757 | 1757 | { |
1758 | - $file = __DIR__ . '/data/' . $file . '.php'; |
|
1758 | + $file = __DIR__.'/data/'.$file.'.php'; |
|
1759 | 1759 | if (file_exists($file)) { |
1760 | 1760 | /** @noinspection PhpIncludeInspection */ |
1761 | 1761 | return require $file; |
@@ -1850,7 +1850,7 @@ discard block |
||
1850 | 1850 | |
1851 | 1851 | return implode( |
1852 | 1852 | array_map( |
1853 | - function ($data) use ($keepAsciiChars) { |
|
1853 | + function($data) use ($keepAsciiChars) { |
|
1854 | 1854 | return UTF8::single_chr_html_encode($data, $keepAsciiChars); |
1855 | 1855 | }, |
1856 | 1856 | self::split($str) |
@@ -1968,7 +1968,7 @@ discard block |
||
1968 | 1968 | |
1969 | 1969 | $str = preg_replace_callback( |
1970 | 1970 | "/&#\d{2,5};/", |
1971 | - function ($matches) use ($encoding) { |
|
1971 | + function($matches) use ($encoding) { |
|
1972 | 1972 | $returnTmp = \mb_convert_encoding($matches[0], $encoding, 'HTML-ENTITIES'); |
1973 | 1973 | |
1974 | 1974 | if ($returnTmp !== '"' && $returnTmp !== "'") { |
@@ -2267,9 +2267,9 @@ discard block |
||
2267 | 2267 | if (ctype_digit((string)$int)) { |
2268 | 2268 | $hex = dechex((int)$int); |
2269 | 2269 | |
2270 | - $hex = (strlen($hex) < 4 ? substr('0000' . $hex, -4) : $hex); |
|
2270 | + $hex = (strlen($hex) < 4 ? substr('0000'.$hex, -4) : $hex); |
|
2271 | 2271 | |
2272 | - return $pfix . $hex; |
|
2272 | + return $pfix.$hex; |
|
2273 | 2273 | } |
2274 | 2274 | |
2275 | 2275 | return ''; |
@@ -2955,7 +2955,7 @@ discard block |
||
2955 | 2955 | */ |
2956 | 2956 | public static function lcfirst($str) |
2957 | 2957 | { |
2958 | - return self::strtolower(self::substr($str, 0, 1)) . self::substr($str, 1); |
|
2958 | + return self::strtolower(self::substr($str, 0, 1)).self::substr($str, 1); |
|
2959 | 2959 | } |
2960 | 2960 | |
2961 | 2961 | /** |
@@ -3412,7 +3412,7 @@ discard block |
||
3412 | 3412 | if (is_array($what)) { |
3413 | 3413 | /** @noinspection ForeachSourceInspection */ |
3414 | 3414 | foreach ($what as $item) { |
3415 | - $str = preg_replace('/(' . preg_quote($item, '/') . ')+/', $item, $str); |
|
3415 | + $str = preg_replace('/('.preg_quote($item, '/').')+/', $item, $str); |
|
3416 | 3416 | } |
3417 | 3417 | } |
3418 | 3418 | |
@@ -3514,7 +3514,7 @@ discard block |
||
3514 | 3514 | { |
3515 | 3515 | static $rxClassCache = array(); |
3516 | 3516 | |
3517 | - $cacheKey = $s . $class; |
|
3517 | + $cacheKey = $s.$class; |
|
3518 | 3518 | |
3519 | 3519 | if (isset($rxClassCache[$cacheKey])) { |
3520 | 3520 | return $rxClassCache[$cacheKey]; |
@@ -3525,7 +3525,7 @@ discard block |
||
3525 | 3525 | /** @noinspection SuspiciousLoopInspection */ |
3526 | 3526 | foreach (self::str_split($s) as $s) { |
3527 | 3527 | if ('-' === $s) { |
3528 | - $class[0] = '-' . $class[0]; |
|
3528 | + $class[0] = '-'.$class[0]; |
|
3529 | 3529 | } elseif (!isset($s[2])) { |
3530 | 3530 | $class[0] .= preg_quote($s, '/'); |
3531 | 3531 | } elseif (1 === self::strlen($s)) { |
@@ -3536,13 +3536,13 @@ discard block |
||
3536 | 3536 | } |
3537 | 3537 | |
3538 | 3538 | if ($class[0]) { |
3539 | - $class[0] = '[' . $class[0] . ']'; |
|
3539 | + $class[0] = '['.$class[0].']'; |
|
3540 | 3540 | } |
3541 | 3541 | |
3542 | 3542 | if (1 === count($class)) { |
3543 | 3543 | $return = $class[0]; |
3544 | 3544 | } else { |
3545 | - $return = '(?:' . implode('|', $class) . ')'; |
|
3545 | + $return = '(?:'.implode('|', $class).')'; |
|
3546 | 3546 | } |
3547 | 3547 | |
3548 | 3548 | $rxClassCache[$cacheKey] = $return; |
@@ -3556,7 +3556,7 @@ discard block |
||
3556 | 3556 | public static function showSupport() |
3557 | 3557 | { |
3558 | 3558 | foreach (self::$support as $utf8Support) { |
3559 | - echo $utf8Support . "\n<br>"; |
|
3559 | + echo $utf8Support."\n<br>"; |
|
3560 | 3560 | } |
3561 | 3561 | } |
3562 | 3562 | |
@@ -3582,7 +3582,7 @@ discard block |
||
3582 | 3582 | return $char; |
3583 | 3583 | } |
3584 | 3584 | |
3585 | - return '&#' . self::ord($char) . ';'; |
|
3585 | + return '&#'.self::ord($char).';'; |
|
3586 | 3586 | } |
3587 | 3587 | |
3588 | 3588 | /** |
@@ -3634,19 +3634,19 @@ discard block |
||
3634 | 3634 | $ret[] = $str[$i]; |
3635 | 3635 | } elseif ((($str[$i] & "\xE0") === "\xC0") && isset($str[$i + 1])) { |
3636 | 3636 | if (($str[$i + 1] & "\xC0") === "\x80") { |
3637 | - $ret[] = $str[$i] . $str[$i + 1]; |
|
3637 | + $ret[] = $str[$i].$str[$i + 1]; |
|
3638 | 3638 | |
3639 | 3639 | $i++; |
3640 | 3640 | } |
3641 | 3641 | } elseif ((($str[$i] & "\xF0") === "\xE0") && isset($str[$i + 2])) { |
3642 | 3642 | if ((($str[$i + 1] & "\xC0") === "\x80") && (($str[$i + 2] & "\xC0") === "\x80")) { |
3643 | - $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2]; |
|
3643 | + $ret[] = $str[$i].$str[$i + 1].$str[$i + 2]; |
|
3644 | 3644 | |
3645 | 3645 | $i += 2; |
3646 | 3646 | } |
3647 | 3647 | } elseif ((($str[$i] & "\xF8") === "\xF0") && isset($str[$i + 3])) { |
3648 | 3648 | if ((($str[$i + 1] & "\xC0") === "\x80") && (($str[$i + 2] & "\xC0") === "\x80") && (($str[$i + 3] & "\xC0") === "\x80")) { |
3649 | - $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3]; |
|
3649 | + $ret[] = $str[$i].$str[$i + 1].$str[$i + 2].$str[$i + 3]; |
|
3650 | 3650 | |
3651 | 3651 | $i += 3; |
3652 | 3652 | } |
@@ -3795,7 +3795,7 @@ discard block |
||
3795 | 3795 | if ('' === $s .= '') { |
3796 | 3796 | $s = '/^(?<=.)$/'; |
3797 | 3797 | } else { |
3798 | - $s = '/' . preg_quote($s, '/') . '/ui'; |
|
3798 | + $s = '/'.preg_quote($s, '/').'/ui'; |
|
3799 | 3799 | } |
3800 | 3800 | } |
3801 | 3801 | |
@@ -3829,7 +3829,7 @@ discard block |
||
3829 | 3829 | } |
3830 | 3830 | |
3831 | 3831 | if (self::substr($str, $length - 1, 1) === ' ') { |
3832 | - return self::substr($str, 0, $length - 1) . $strAddOn; |
|
3832 | + return self::substr($str, 0, $length - 1).$strAddOn; |
|
3833 | 3833 | } |
3834 | 3834 | |
3835 | 3835 | $str = self::substr($str, 0, $length); |
@@ -3838,9 +3838,9 @@ discard block |
||
3838 | 3838 | $new_str = implode(' ', $array); |
3839 | 3839 | |
3840 | 3840 | if ($new_str === '') { |
3841 | - $str = self::substr($str, 0, $length - 1) . $strAddOn; |
|
3841 | + $str = self::substr($str, 0, $length - 1).$strAddOn; |
|
3842 | 3842 | } else { |
3843 | - $str = $new_str . $strAddOn; |
|
3843 | + $str = $new_str.$strAddOn; |
|
3844 | 3844 | } |
3845 | 3845 | |
3846 | 3846 | return $str; |
@@ -3895,7 +3895,7 @@ discard block |
||
3895 | 3895 | $pre = ''; |
3896 | 3896 | } |
3897 | 3897 | |
3898 | - return $pre . $str . $post; |
|
3898 | + return $pre.$str.$post; |
|
3899 | 3899 | } |
3900 | 3900 | |
3901 | 3901 | return $str; |
@@ -4024,7 +4024,7 @@ discard block |
||
4024 | 4024 | return str_split($str, $len); |
4025 | 4025 | } |
4026 | 4026 | |
4027 | - preg_match_all('/' . Grapheme::GRAPHEME_CLUSTER_RX . '/u', $str, $a); |
|
4027 | + preg_match_all('/'.Grapheme::GRAPHEME_CLUSTER_RX.'/u', $str, $a); |
|
4028 | 4028 | $a = $a[0]; |
4029 | 4029 | |
4030 | 4030 | if ($len === 1) { |
@@ -4174,7 +4174,7 @@ discard block |
||
4174 | 4174 | */ |
4175 | 4175 | public static function strcmp($str1, $str2) |
4176 | 4176 | { |
4177 | - return $str1 . '' === $str2 . '' ? 0 : strcmp( |
|
4177 | + return $str1.'' === $str2.'' ? 0 : strcmp( |
|
4178 | 4178 | \Normalizer::normalize($str1, \Normalizer::NFD), |
4179 | 4179 | \Normalizer::normalize($str2, \Normalizer::NFD) |
4180 | 4180 | ); |
@@ -4205,7 +4205,7 @@ discard block |
||
4205 | 4205 | return null; |
4206 | 4206 | } |
4207 | 4207 | |
4208 | - if (preg_match('/^(.*?)' . self::rxClass($charList) . '/us', $str, $length)) { |
|
4208 | + if (preg_match('/^(.*?)'.self::rxClass($charList).'/us', $str, $length)) { |
|
4209 | 4209 | /** @noinspection OffsetOperationsInspection */ |
4210 | 4210 | return self::strlen($length[1]); |
4211 | 4211 | } |
@@ -4459,7 +4459,7 @@ discard block |
||
4459 | 4459 | */ |
4460 | 4460 | public static function strnatcmp($str1, $str2) |
4461 | 4461 | { |
4462 | - return $str1 . '' === $str2 . '' ? 0 : strnatcmp(self::strtonatfold($str1), self::strtonatfold($str2)); |
|
4462 | + return $str1.'' === $str2.'' ? 0 : strnatcmp(self::strtonatfold($str1), self::strtonatfold($str2)); |
|
4463 | 4463 | } |
4464 | 4464 | |
4465 | 4465 | /** |
@@ -4520,7 +4520,7 @@ discard block |
||
4520 | 4520 | return false; |
4521 | 4521 | } |
4522 | 4522 | |
4523 | - if (preg_match('/' . self::rxClass($char_list) . '/us', $haystack, $m)) { |
|
4523 | + if (preg_match('/'.self::rxClass($char_list).'/us', $haystack, $m)) { |
|
4524 | 4524 | return substr($haystack, strpos($haystack, $m[0])); |
4525 | 4525 | } else { |
4526 | 4526 | return false; |
@@ -4835,7 +4835,7 @@ discard block |
||
4835 | 4835 | return 0; |
4836 | 4836 | } |
4837 | 4837 | |
4838 | - return preg_match('/^' . self::rxClass($mask) . '+/u', $str, $str) ? self::strlen($str[0]) : 0; |
|
4838 | + return preg_match('/^'.self::rxClass($mask).'+/u', $str, $str) ? self::strlen($str[0]) : 0; |
|
4839 | 4839 | } |
4840 | 4840 | |
4841 | 4841 | /** |
@@ -5311,7 +5311,7 @@ discard block |
||
5311 | 5311 | |
5312 | 5312 | $strSwappedCase = preg_replace_callback( |
5313 | 5313 | '/[\S]/u', |
5314 | - function ($match) use ($encoding) { |
|
5314 | + function($match) use ($encoding) { |
|
5315 | 5315 | $marchToUpper = UTF8::strtoupper($match[0], $encoding); |
5316 | 5316 | |
5317 | 5317 | if ($match[0] === $marchToUpper) { |
@@ -5493,7 +5493,7 @@ discard block |
||
5493 | 5493 | |
5494 | 5494 | $bank = $ord >> 8; |
5495 | 5495 | if (!array_key_exists($bank, (array)$UTF8_TO_ASCII)) { |
5496 | - $bankfile = __DIR__ . '/data/' . sprintf('x%02x', $bank) . '.php'; |
|
5496 | + $bankfile = __DIR__.'/data/'.sprintf('x%02x', $bank).'.php'; |
|
5497 | 5497 | if (file_exists($bankfile)) { |
5498 | 5498 | /** @noinspection PhpIncludeInspection */ |
5499 | 5499 | require $bankfile; |
@@ -5614,40 +5614,40 @@ discard block |
||
5614 | 5614 | if ($c1 >= "\xc0" & $c1 <= "\xdf") { // looks like 2 bytes UTF8 |
5615 | 5615 | |
5616 | 5616 | if ($c2 >= "\x80" && $c2 <= "\xbf") { // yeah, almost sure it's UTF8 already |
5617 | - $buf .= $c1 . $c2; |
|
5617 | + $buf .= $c1.$c2; |
|
5618 | 5618 | $i++; |
5619 | 5619 | } else { // not valid UTF8 - convert it |
5620 | 5620 | $cc1 = (chr(ord($c1) / 64) | "\xc0"); |
5621 | 5621 | $cc2 = ($c1 & "\x3f") | "\x80"; |
5622 | - $buf .= $cc1 . $cc2; |
|
5622 | + $buf .= $cc1.$cc2; |
|
5623 | 5623 | } |
5624 | 5624 | |
5625 | 5625 | } elseif ($c1 >= "\xe0" & $c1 <= "\xef") { // looks like 3 bytes UTF8 |
5626 | 5626 | |
5627 | 5627 | if ($c2 >= "\x80" && $c2 <= "\xbf" && $c3 >= "\x80" && $c3 <= "\xbf") { // yeah, almost sure it's UTF8 already |
5628 | - $buf .= $c1 . $c2 . $c3; |
|
5628 | + $buf .= $c1.$c2.$c3; |
|
5629 | 5629 | $i += 2; |
5630 | 5630 | } else { // not valid UTF8 - convert it |
5631 | 5631 | $cc1 = (chr(ord($c1) / 64) | "\xc0"); |
5632 | 5632 | $cc2 = ($c1 & "\x3f") | "\x80"; |
5633 | - $buf .= $cc1 . $cc2; |
|
5633 | + $buf .= $cc1.$cc2; |
|
5634 | 5634 | } |
5635 | 5635 | |
5636 | 5636 | } elseif ($c1 >= "\xf0" & $c1 <= "\xf7") { // looks like 4 bytes UTF8 |
5637 | 5637 | |
5638 | 5638 | if ($c2 >= "\x80" && $c2 <= "\xbf" && $c3 >= "\x80" && $c3 <= "\xbf" && $c4 >= "\x80" && $c4 <= "\xbf") { // yeah, almost sure it's UTF8 already |
5639 | - $buf .= $c1 . $c2 . $c3 . $c4; |
|
5639 | + $buf .= $c1.$c2.$c3.$c4; |
|
5640 | 5640 | $i += 3; |
5641 | 5641 | } else { // not valid UTF8 - convert it |
5642 | 5642 | $cc1 = (chr(ord($c1) / 64) | "\xc0"); |
5643 | 5643 | $cc2 = ($c1 & "\x3f") | "\x80"; |
5644 | - $buf .= $cc1 . $cc2; |
|
5644 | + $buf .= $cc1.$cc2; |
|
5645 | 5645 | } |
5646 | 5646 | |
5647 | 5647 | } else { // doesn't look like UTF8, but should be converted |
5648 | 5648 | $cc1 = (chr(ord($c1) / 64) | "\xc0"); |
5649 | 5649 | $cc2 = (($c1 & "\x3f") | "\x80"); |
5650 | - $buf .= $cc1 . $cc2; |
|
5650 | + $buf .= $cc1.$cc2; |
|
5651 | 5651 | } |
5652 | 5652 | |
5653 | 5653 | } elseif (($c1 & "\xc0") === "\x80") { // needs conversion |
@@ -5658,7 +5658,7 @@ discard block |
||
5658 | 5658 | } else { |
5659 | 5659 | $cc1 = (chr($ordC1 / 64) | "\xc0"); |
5660 | 5660 | $cc2 = (($c1 & "\x3f") | "\x80"); |
5661 | - $buf .= $cc1 . $cc2; |
|
5661 | + $buf .= $cc1.$cc2; |
|
5662 | 5662 | } |
5663 | 5663 | |
5664 | 5664 | } else { // it doesn't need conversion |
@@ -5669,7 +5669,7 @@ discard block |
||
5669 | 5669 | // decode unicode escape sequences |
5670 | 5670 | $buf = preg_replace_callback( |
5671 | 5671 | '/\\\\u([0-9a-f]{4})/i', |
5672 | - function ($match) { |
|
5672 | + function($match) { |
|
5673 | 5673 | return \mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE'); |
5674 | 5674 | }, |
5675 | 5675 | $buf |
@@ -5678,7 +5678,7 @@ discard block |
||
5678 | 5678 | // decode UTF-8 codepoints |
5679 | 5679 | $buf = preg_replace_callback( |
5680 | 5680 | '/&#\d{2,4};/', |
5681 | - function ($match) { |
|
5681 | + function($match) { |
|
5682 | 5682 | return \mb_convert_encoding($match[0], 'UTF-8', 'HTML-ENTITIES'); |
5683 | 5683 | }, |
5684 | 5684 | $buf |
@@ -5727,7 +5727,7 @@ discard block |
||
5727 | 5727 | */ |
5728 | 5728 | public static function ucfirst($str, $encoding = 'UTF-8', $cleanUtf8 = false) |
5729 | 5729 | { |
5730 | - return self::strtoupper(self::substr($str, 0, 1, $encoding, $cleanUtf8), $encoding, $cleanUtf8) . self::substr($str, 1, null, $encoding, $cleanUtf8); |
|
5730 | + return self::strtoupper(self::substr($str, 0, 1, $encoding, $cleanUtf8), $encoding, $cleanUtf8).self::substr($str, 1, null, $encoding, $cleanUtf8); |
|
5731 | 5731 | } |
5732 | 5732 | |
5733 | 5733 | /** |
@@ -6193,7 +6193,7 @@ discard block |
||
6193 | 6193 | return ''; |
6194 | 6194 | } |
6195 | 6195 | |
6196 | - preg_match('/^\s*+(?:\S++\s*+){1,' . $words . '}/u', $str, $matches); |
|
6196 | + preg_match('/^\s*+(?:\S++\s*+){1,'.$words.'}/u', $str, $matches); |
|
6197 | 6197 | |
6198 | 6198 | if ( |
6199 | 6199 | !isset($matches[0]) |
@@ -6203,7 +6203,7 @@ discard block |
||
6203 | 6203 | return $str; |
6204 | 6204 | } |
6205 | 6205 | |
6206 | - return self::rtrim($matches[0]) . $strAddOn; |
|
6206 | + return self::rtrim($matches[0]).$strAddOn; |
|
6207 | 6207 | } |
6208 | 6208 | |
6209 | 6209 | /** |
@@ -6271,7 +6271,7 @@ discard block |
||
6271 | 6271 | $strReturn .= $break; |
6272 | 6272 | } |
6273 | 6273 | |
6274 | - return $strReturn . implode('', $chars); |
|
6274 | + return $strReturn.implode('', $chars); |
|
6275 | 6275 | } |
6276 | 6276 | |
6277 | 6277 | /** |