/** * generates a seperator line by repeating the given character upto console window width * * @param string $char */ public static function seperatorLine($char = '') { $char = trim($char); if ($char == '') { $char = MANGA_SCRAPPER_SEPERATOR_LINE_CHAR; } $message = str_repeat($char, self::getConsoleWidth()); echo ConsoleColors::coloredText($message, MANGA_SCRAPPER_SEPERATOR_LINE_COLOR); self::emptyLines(1); }
function consoleLineBlue($message = '', $newlines = 1) { $newlines = (int) $newlines; if ($newlines < 0) { $newlines = 0; } echo ConsoleColors::coloredText($message, ConsoleColors::COLOR_BLUE) . str_repeat(PHP_EOL, $newlines); }