@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | |
| 327 | 327 | private function iconv(string $fromCharset, string $toCharset, string $str) : string |
| 328 | 328 | { |
| 329 | - $ret = @\iconv($fromCharset, $toCharset . '//TRANSLIT//IGNORE', $str); |
|
| 329 | + $ret = @\iconv($fromCharset, $toCharset.'//TRANSLIT//IGNORE', $str); |
|
| 330 | 330 | if ($ret === false) { |
| 331 | 331 | throw new UnsupportedCharsetException("Unable to convert from charsets: $fromCharset to $toCharset"); |
| 332 | 332 | } |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | |
| 336 | 336 | private function iconvStrlen(string $str, string $charset) : int |
| 337 | 337 | { |
| 338 | - $ret = @\iconv_strlen($str, $charset . '//TRANSLIT//IGNORE'); |
|
| 338 | + $ret = @\iconv_strlen($str, $charset.'//TRANSLIT//IGNORE'); |
|
| 339 | 339 | if ($ret === false) { |
| 340 | 340 | throw new UnsupportedCharsetException("Charset $charset is not supported"); |
| 341 | 341 | } |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | |
| 345 | 345 | private function iconvSubstr(string $str, string $charset, int $start, ?int $length = null) : string |
| 346 | 346 | { |
| 347 | - $ret = @\iconv_substr($str, $start, $length, $charset . '//TRANSLIT//IGNORE'); |
|
| 347 | + $ret = @\iconv_substr($str, $start, $length, $charset.'//TRANSLIT//IGNORE'); |
|
| 348 | 348 | if ($ret === false) { |
| 349 | 349 | $strLength = $this->iconvStrlen($str, $charset); |
| 350 | 350 | if ($start > $strLength) { |
@@ -408,7 +408,7 @@ discard block |
||
| 408 | 408 | return \mb_check_encoding($str, $mb); |
| 409 | 409 | } |
| 410 | 410 | $ic = $this->getIconvAlias($charset); |
| 411 | - return (@\iconv($ic, $ic . '//TRANSLIT//IGNORE', $str) !== false); |
|
| 411 | + return (@\iconv($ic, $ic.'//TRANSLIT//IGNORE', $str) !== false); |
|
| 412 | 412 | } |
| 413 | 413 | |
| 414 | 414 | /** |