File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -47,19 +47,19 @@ class CliColors {
4747
4848 /**
4949 * @param string $string
50- * @param null|string $foreground_color
51- * @param null|string $background_color
50+ * @param null|string $foregroundColor
51+ * @param null|string $backgroundColor
5252 * @return string
5353 */
54- public function getColoredString ($ string , $ foreground_color = null , $ background_color = null ){
54+ public function getColoredString ($ string , $ foregroundColor = null , $ backgroundColor = null ){
5555 $ colored_string = '' ;
5656
57- if (isset ($ this ->foregroundColors ["$ foreground_color " ])){
58- $ colored_string .= "\033[ " . $ this ->foregroundColors [$ foreground_color ] . "m " ;
57+ if (isset ($ this ->foregroundColors ["$ foregroundColor " ])){
58+ $ colored_string .= "\033[ " . $ this ->foregroundColors [$ foregroundColor ] . "m " ;
5959 }
6060
61- if (isset ($ this ->backgroundColors ["$ background_color " ])){
62- $ colored_string .= "\033[ " . $ this ->backgroundColors [$ background_color ] . "m " ;
61+ if (isset ($ this ->backgroundColors ["$ backgroundColor " ])){
62+ $ colored_string .= "\033[ " . $ this ->backgroundColors [$ backgroundColor ] . "m " ;
6363 }
6464
6565 $ colored_string .= $ string . "\033[0m " ;
You can’t perform that action at this time.
0 commit comments