Skip to content

Commit 3083b38

Browse files
committed
CamelCase
1 parent 3130290 commit 3083b38

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/classes/jblond/cli/CliColors.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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";

0 commit comments

Comments
 (0)