src/Domain/Type/MbStringObject.php
private static function padString(string $string, int $left, int $right, string $char): string
    {
        $leftPadding = str_repeat($char, $left);
        $rightPadding = str_repeat($char, $right);

        return $leftPadding.$string.$rightPadding;
    }
private static function padString(string $string, int $left, int $right, string $char): string
    {
        $leftPadding = str_repeat($char, $left);
        $rightPadding = str_repeat($char, $right);

        return $leftPadding.$string.$rightPadding;
    }
private static function padString ( string $ string , int $ left , int $ right , string $ char ) : string { $ leftPadding = str_repeat ( $ char , $ left ) ; $ rightPadding = str_repeat ( $ char , $ right ) ; return $ leftPadding . $ string . $ rightPadding ; }
Applies padding to a string

@param string $string The original string
@param int    $left   The left padding size
@param int    $right  The right padding size
@param string $char   The padding character

@return string
Applies padding to a string