@@ -113,7 +113,7 @@ public function render(
113113
114114 foreach ($ successes as $ success ) {
115115 $ output ->writeLine ($ this ->center ($ this ->style (str_repeat (' ' , $ longest ), ['bg_green ' ])));
116- $ output ->writeLine ($ this ->center ($ this ->style ($ this -> mbStrPad ($ success , $ longest ), ['bg_green ' , 'white ' , 'bold ' ])));
116+ $ output ->writeLine ($ this ->center ($ this ->style (\mb_str_pad ($ success , $ longest ), ['bg_green ' , 'white ' , 'bold ' ])));
117117 $ output ->writeLine ($ this ->center ($ this ->style (str_repeat (' ' , $ longest ), ['bg_green ' ])));
118118 $ output ->emptyLine ();
119119 }
@@ -139,7 +139,7 @@ private function renderErrorInformation(
139139 foreach ($ failures as $ result ) {
140140 list ($ failure , $ message ) = $ result ;
141141 $ output ->writeLine ($ this ->center ($ this ->style (str_repeat (' ' , $ padLength ), ['bg_red ' ])));
142- $ output ->writeLine ($ this ->center ($ this ->style ($ this -> mbStrPad ($ message , $ padLength ), ['bg_red ' ])));
142+ $ output ->writeLine ($ this ->center ($ this ->style (\mb_str_pad ($ message , $ padLength ), ['bg_red ' ])));
143143 $ output ->writeLine ($ this ->center ($ this ->style (str_repeat (' ' , $ padLength ), ['bg_red ' ])));
144144
145145 $ output ->emptyLine ();
@@ -292,17 +292,4 @@ public function lineBreak()
292292 {
293293 return $ this ->style (str_repeat ('─ ' , $ this ->terminal ->getWidth ()), 'yellow ' );
294294 }
295-
296- /**
297- * @param string $input
298- * @param int $padLength
299- * @param string $padString
300- * @param int $padType
301- * @return string
302- */
303- public function mbStrPad ($ input , $ padLength , $ padString = ' ' , $ padType = STR_PAD_RIGHT )
304- {
305- $ diff = strlen ($ input ) - mb_strlen ($ input );
306- return str_pad ($ input , $ padLength + $ diff , $ padString , $ padType );
307- }
308295}
0 commit comments