@@ -199,24 +199,23 @@ static public function length($string) {
199199 static public function width ( $ string , $ pre_colorized = false , $ encoding = false ) {
200200 return strwidth ( $ pre_colorized || self ::shouldColorize () ? self ::decolorize ( $ string , $ pre_colorized ? 1 /*keep_tokens*/ : 0 ) : $ string , $ encoding );
201201 }
202-
202+
203203 /**
204204 * Pad the string to a certain display length.
205205 *
206206 * @param string $string The string to pad.
207207 * @param int $length The display length.
208208 * @param bool $pre_colorized Optional. Set if the string is pre-colorized. Default false.
209209 * @param string|bool $encoding Optional. The encoding of the string. Default false.
210- * @param string $pad_string Optional. Changes the default pad_string. Default ' '.
211210 * @param int $pad_type Optional. Can be STR_PAD_RIGHT, STR_PAD_LEFT, or STR_PAD_BOTH. If pad_type is not specified it is assumed to be STR_PAD_RIGHT.
212211 * @return string
213212 */
214- static public function pad ( $ string , $ length , $ pre_colorized = false , $ encoding = false , $ pad_string = ' ' , $ pad_type = STR_PAD_RIGHT ) {
213+ static public function pad ( $ string , $ length , $ pre_colorized = false , $ encoding = false , $ pad_type = STR_PAD_RIGHT ) {
215214 $ real_length = self ::width ( $ string , $ pre_colorized , $ encoding );
216215 $ diff = strlen ( $ string ) - $ real_length ;
217216 $ length += $ diff ;
218217
219- return str_pad ( $ string , $ length , $ pad_string , $ pad_type );
218+ return str_pad ( $ string , $ length , ' ' , $ pad_type );
220219 }
221220
222221 /**
0 commit comments