src/TerminalObject/Dynamic/Padding.php
protected function padContent($content)
    {
        if (strlen($this->char) > 0) {
            $length = $this->getLength();
            $padding_length = ceil($length / mb_strlen($this->char));

            $padding = str_repeat($this->char, $padding_length);
            $content .= mb_substr($padding, 0, $length - mb_strlen($content));
        }

        return $content;
    }
protected function padContent($content)
    {
        if (strlen($this->char) > 0) {
            $length = $this->getLength();
            $padding_length = ceil($length / mb_strlen($this->char));

            $padding = str_repeat($this->char, $padding_length);
            $content .= mb_substr($padding, 0, $length - mb_strlen($content));
        }

        return $content;
    }
protected function padContent ( $ content ) { if ( strlen ( $ this -> char ) > 0 ) { $ length = $ this -> getLength ( ) ; $ padding_length = ceil ( $ length / mb_strlen ( $ this -> char ) ) ; $ padding = str_repeat ( $ this -> char , $ padding_length ) ; $ content .= mb_substr ( $ padding , 0 , $ length - mb_strlen ( $ content ) ) ; } return $ content ; }
Pad the content with the characters

@param string $content

@return string
Pad the content with the characters