modifs.mineures sans commentaires
This commit is contained in:
parent
3d83e44667
commit
e2912b1042
@ -52,22 +52,22 @@ class ConsoleMessenger extends AbstractMessenger {
|
||||
}
|
||||
|
||||
function resetParams(?array $params=null): void {
|
||||
$output = cl::get($params, "output");
|
||||
$color = cl::get($params, "color");
|
||||
$indent = cl::get($params, "indent");
|
||||
$output = $params["output"] ?? null;
|
||||
$color = $params["color"] ?? null;
|
||||
$indent = $params["indent"] ?? null;
|
||||
|
||||
$defaultLevel = cl::get($params, "default_level");
|
||||
$defaultLevel = $params["default_level"] ?? null;
|
||||
if ($defaultLevel !== null) $defaultLevel = self::verifix_level($defaultLevel);
|
||||
|
||||
$debug = cl::get($params, "debug");
|
||||
$minLevel = cl::get($params, "min_level");
|
||||
if ($minLevel === null && $debug !== null) $minLevel = $debug? self::DEBUG: self::NORMAL;
|
||||
if ($minLevel === null) $minLevel = cl::get($params, "verbosity"); # alias
|
||||
$debug = $params["debug"] ?? null;
|
||||
$minLevel = $params["min_level"] ?? null;
|
||||
if ($debug !== null) $minLevel ??= self::DEBUG;
|
||||
$minLevel ??= $params["verbosity"] ?? null; # alias
|
||||
if ($minLevel !== null) $minLevel = self::verifix_level($minLevel, self::NONE);
|
||||
|
||||
$addDate = cl::get($params, "add_date");
|
||||
$dateFormat = cl::get($params, "date_format");
|
||||
$id = cl::get($params, "id");
|
||||
$addDate = $params["add_date"] ?? null;
|
||||
$dateFormat = $params["date_format"] ?? null;
|
||||
$id = $params["id"] ?? null;
|
||||
|
||||
$params = [
|
||||
"output" => $output,
|
||||
|
Loading…
x
Reference in New Issue
Block a user