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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
Display the given output line.

@param  int  $type
@param  string  $host
@param  string  $line
@return void
Display the given output line .