From 765a97d40b9776819e93b3472916cdb2c13fa51d Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Sun, 26 Jan 2020 17:30:14 +0300 Subject: [PATCH] Fixed error in determining the number of characters in different encodings --- src/Services/Formatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Formatter.php b/src/Services/Formatter.php index ba2fcd0..2820877 100644 --- a/src/Services/Formatter.php +++ b/src/Services/Formatter.php @@ -50,7 +50,7 @@ public function raw(array $array, int $pad = 1): string protected function pad(string $value, int $pad = 1, $type = STR_PAD_LEFT): string { $pad += $type === STR_PAD_LEFT - ? mb_strlen($value) + ? strlen($value) : 2; return str_pad($value, $pad, ' ', $type);