Laravel\Envoy\Console\RunCommand::displayOutput PHP Method

displayOutput() protected method

Display the given output line.
protected displayOutput ( integer $type, string $host, string $line ) : void
$type integer
$host string
$line string
return void
    protected function displayOutput($type, $host, $line)
    {
        $lines = explode("\n", $line);
        foreach ($lines as $line) {
            if (strlen(trim($line)) === 0) {
                continue;
            }
            if ($type == Process::OUT) {
                $this->output->write('<comment>[' . $host . ']</comment>: ' . trim($line) . PHP_EOL);
            } else {
                $this->output->write('<comment>[' . $host . ']</comment>: <fg=red>' . trim($line) . '</>' . PHP_EOL);
            }
        }
    }