Minor code style improvements
This commit is contained in:
parent
aad9c42786
commit
03db871930
|
@ -58,7 +58,9 @@ final class MDConsole {
|
|||
$headingLvlChar = "-";
|
||||
}
|
||||
|
||||
for ($i = 0; $i < $msgLen + 6; $i++) echo $headingLvlChar;
|
||||
for ($i = 0; $i < $msgLen + 6; $i++) {
|
||||
echo $headingLvlChar;
|
||||
}
|
||||
echo PHP_EOL;
|
||||
|
||||
}
|
||||
|
@ -100,10 +102,12 @@ final class MDConsole {
|
|||
|
||||
$levelColor = self::CONSOLE_LEVEL_COLORS[$level];
|
||||
|
||||
if ($link === "")
|
||||
if ($link === "") {
|
||||
echo \sprintf("\033[1;30;" . $levelColor . "m_____\033[0m\033[0m %-20s \033[40m::\033[0m # \033[32m%+9s\033[0m \033[40m::\033[0m 📝 %-50s \033[40m::\033[0m 📅 %+20s\n", $context, $editedNo, $additionalNote, $date);
|
||||
else
|
||||
echo \sprintf("\033[1;30;" . $levelColor . "m_____\033[0m\033[0m %-20s \033[40m::\033[0m # \033[32m%+9s\033[0m \033[40m::\033[0m 📝 %-50s \033[40m::\033[0m 📅 %+20s \033[40m::\033[0m $link\n", $context, $editedNo, $additionalNote, $date);;
|
||||
}
|
||||
else {
|
||||
echo \sprintf("\033[1;30;" . $levelColor . "m_____\033[0m\033[0m %-20s \033[40m::\033[0m # \033[32m%+9s\033[0m \033[40m::\033[0m 📝 %-50s \033[40m::\033[0m 📅 %+20s \033[40m::\033[0m $link\n", $context, $editedNo, $additionalNote, $date);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user