modifs.mineures sans commentaires
This commit is contained in:
parent
e605dd3876
commit
a46111d089
|
@ -76,11 +76,11 @@ class ProxyMessenger implements IMessenger {
|
|||
$useFunc = false;
|
||||
$untils = [];
|
||||
foreach ($this->msgs as $msg) {
|
||||
$msg->action($content, null, $level);
|
||||
if ($msg instanceof _IMessenger) {
|
||||
$useFunc = true;
|
||||
$untils[] = $msg->_getActionMark();
|
||||
}
|
||||
$msg->action($content, null, $level);
|
||||
}
|
||||
if ($useFunc && $func !== null) {
|
||||
try {
|
||||
|
|
|
@ -306,12 +306,12 @@ class StdMessenger implements _IMessenger {
|
|||
$rprefix2 = str_repeat(" ", mb_strlen($rprefix));
|
||||
}
|
||||
if ($printContent && $printResult) {
|
||||
A::ensure_array($content);
|
||||
if ($rcontent) {
|
||||
A::ensure_array($content);
|
||||
$content[] = ": ";
|
||||
$content[] = $rcontent;
|
||||
}
|
||||
$lines = $out->getLines(false, $content);
|
||||
$lines = $out->getLines(false, ...$content);
|
||||
foreach ($lines as $content) {
|
||||
if ($linePrefix !== null) $out->write($linePrefix);
|
||||
$out->iprint($indentLevel, $rprefix, $content);
|
||||
|
@ -331,7 +331,9 @@ class StdMessenger implements _IMessenger {
|
|||
$prefix2 = str_repeat(" ", mb_strlen($prefix));
|
||||
$suffix = null;
|
||||
}
|
||||
$lines = $out->getLines(false, $content, ":");
|
||||
A::ensure_array($content);
|
||||
$content[] = ":";
|
||||
$lines = $out->getLines(false, ...$content);
|
||||
foreach ($lines as $content) {
|
||||
if ($linePrefix !== null) $out->write($linePrefix);
|
||||
$out->iprint($indentLevel, $prefix, $content, $suffix);
|
||||
|
@ -399,7 +401,8 @@ class StdMessenger implements _IMessenger {
|
|||
$valueContent[] = $value;
|
||||
}
|
||||
}
|
||||
$content = $valueContent;
|
||||
if (count($valueContent) == 1) $content = $valueContent[0];
|
||||
else $content = $valueContent;
|
||||
} elseif ($content instanceof Throwable || $content instanceof ExceptionShadow) {
|
||||
$exceptions[] = $content;
|
||||
$content = null;
|
||||
|
|
|
@ -206,7 +206,7 @@ Application::run(new class extends Application {
|
|||
|
||||
$msg->info("info");
|
||||
$msg->note("note");
|
||||
$msg->warn("warning");
|
||||
$msg->warning("warning");
|
||||
$msg->error("error");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue