Skip to content

Commit

Permalink
Fixed error in determining the number of characters in different enco…
Browse files Browse the repository at this point in the history
…dings
  • Loading branch information
Andrey Helldar authored Jan 26, 2020
1 parent bd6b615 commit 765a97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 765a97d

Please sign in to comment.