@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | // Function defined by PHP should be called using the correct casing. |
111 | 111 | 'native_function_casing' => true, |
112 | 112 | // Add leading `\` before function invocation to speed up resolving. |
113 | - 'native_function_invocation' => ['include'=>['@all','trans']], |
|
113 | + 'native_function_invocation' => ['include'=>['@all', 'trans']], |
|
114 | 114 | // Native type hints for functions should use the correct case. |
115 | 115 | 'native_type_declaration_casing' => true, |
116 | 116 | // All instances created with new keyword must be followed by braces. |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | // There should not be space before or after object operators `->` and `?->`. |
191 | 191 | 'object_operator_without_whitespace' => true, |
192 | 192 | // Orders the elements of classes/interfaces/traits. |
193 | - 'ordered_class_elements' => ['order'=>['use_trait','constant_public','constant_protected','constant_private','property_public','property_protected','property_private']], |
|
193 | + 'ordered_class_elements' => ['order'=>['use_trait', 'constant_public', 'constant_protected', 'constant_private', 'property_public', 'property_protected', 'property_private']], |
|
194 | 194 | // Ordering `use` statements. |
195 | 195 | 'ordered_imports' => true, |
196 | 196 | // Orders the interfaces in an `implements` or `interface extends` clause. |
@@ -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 | /** |