@@ -27,16 +27,16 @@ |
||
27 | 27 | private static function createDeterminer(): Closure |
28 | 28 | { |
29 | 29 | if (function_exists('\AlecRabbit\WCWidth\wcswidth')) { |
30 | - return static function (string $string): int { |
|
30 | + return static function(string $string): int { |
|
31 | 31 | return wcswidth($string); |
32 | 32 | }; |
33 | 33 | } |
34 | 34 | if (function_exists('\mb_strlen')) { |
35 | - return static function (string $string): int { |
|
35 | + return static function(string $string): int { |
|
36 | 36 | return mb_strlen($string); |
37 | 37 | }; |
38 | 38 | } |
39 | - return static function (string $string): int { |
|
39 | + return static function(string $string): int { |
|
40 | 40 | return strlen($string); |
41 | 41 | }; |
42 | 42 | } |