private function hasTty() { if (!$this->output instanceof StreamOutput) { return false; } if (getenv("PERIDOT_TTY")) { return true; } return $this->isTtyTerminal($this->output); }