public function pad(int $length, string $padding = ' '): Utility
    {
        $padLength = $length - $this->length();

        return $this->applyPadding(floor($padLength / 2), ceil($padLength / 2), $padding);
    }
public function pad(int $length, string $padding = ' '): Utility
    {
        $padLength = $length - $this->length();

        return $this->applyPadding(floor($padLength / 2), ceil($padLength / 2), $padding);
    }
public function pad ( int $ length , string $ padding = ' ' ) : Utility { $ padLength = $ length - $ this -> length ( ) ; return $ this -> applyPadding ( floor ( $ padLength / 2 ) , ceil ( $ padLength / 2 ) , $ padding ) ; }
Pad the string with a value until it is the given length

@param int $length Desired string length after padding
@param string $padding Value to pad the string with

@return $this
Pad the string with a value until it is the given length