Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-07-07 22:14:05 +00:00 committed by StyleCI Bot
parent c1fd3c4ea7
commit 3f54e69c0c

View File

@ -17,7 +17,7 @@ namespace danog\MadelineProto;
class Logger
{
const foreground = array(
const foreground = [
'default' => 39,
'black' => 30,
@ -37,9 +37,9 @@ class Logger
'light_magenta' => 95,
'light_cyan' => 96,
'white' => 97,
);
];
const background = array(
const background = [
'default' => 49,
'black' => 40,
@ -51,7 +51,6 @@ class Logger
'cyan' => 46,
'light_gray' => 47,
'dark_gray' => 100,
'light_red' => 101,
'light_green' => 102,
@ -60,7 +59,7 @@ class Logger
'light_magenta' => 105,
'light_cyan' => 106,
'white' => 107,
);
];
const set = [
'bold' => 1,
@ -164,7 +163,7 @@ class Logger
error_log($param.PHP_EOL, 3, self::$optional);
break;
case 3:
echo "\033[" . self::$colors[$level] . "m" . $param . "\033[0m".PHP_EOL;
echo "\033[".self::$colors[$level].'m'.$param."\033[0m".PHP_EOL;
break;
default:
break;