Пример #1
0
 /**
  * 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);
 }
Пример #2
0
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);
}