src/helpers/StringHelper.php
public static function padBoth($str, $length, $padStr = ' '): string
    {
        return (string)BaseStringy::create($str)->padBoth($length, $padStr);
    }
public static function padBoth($str, $length, $padStr = ' '): string
    {
        return (string)BaseStringy::create($str)->padBoth($length, $padStr);
    }
public static function padBoth ( $ str , $ length , $ padStr = ' ' ) : string { return ( string ) BaseStringy :: create ( $ str ) -> padBoth ( $ length , $ padStr ) ; }
Returns a new string of a given length such that both sides of the string are padded.

@param  string $str The string to pad.
@param  int $length The desired string length after padding.
@param  string $padStr The string used to pad, defaults to space.
@return string The padded string.
Returns a new string of a given length such that both sides of the string are padded .