Minor code style improvements

This commit is contained in:
Joshua Ramon Enslin 2021-02-06 21:41:39 +01:00
parent aad9c42786
commit 03db871930
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -58,7 +58,9 @@ final class MDConsole {
$headingLvlChar = "-"; $headingLvlChar = "-";
} }
for ($i = 0; $i < $msgLen + 6; $i++) echo $headingLvlChar; for ($i = 0; $i < $msgLen + 6; $i++) {
echo $headingLvlChar;
}
echo PHP_EOL; echo PHP_EOL;
} }
@ -100,10 +102,12 @@ final class MDConsole {
$levelColor = self::CONSOLE_LEVEL_COLORS[$level]; $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); 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);
}
} }