src/Str.php
public function rightPad(int $length, string $character = ' '): self
    {
        return $this->pad($length, $character, self::PAD_RIGHT);
    }
public function rightPad(int $length, string $character = ' '): self
    {
        return $this->pad($length, $character, self::PAD_RIGHT);
    }
public function rightPad ( int $ length , string $ character = ' ' ) : self { return $ this -> pad ( $ length , $ character , self :: PAD_RIGHT ) ; }
Pad to the right

@param int $length
@param string $character

@return self
Pad to the right