Skip to content

Commit 2084dca

Browse files
committed
Split TTY check method
split: 2f7f94fc775973bb3f825a5cdbe1c4817ccbf232
1 parent da0e89a commit 2084dca

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Renderer/Partial/Debug/DebuggerTrait.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,13 @@ private function hasColorSupport()
195195
|| getenv('TERM') === 'xterm';
196196
}
197197

198+
return $this->isATTY();
199+
// @codeCoverageIgnoreEnd
200+
}
201+
202+
private function isATTY()
203+
{
204+
// @codeCoverageIgnoreStart
198205
if (!defined('STDOUT')) {
199206
return false;
200207
}

0 commit comments

Comments
 (0)