src/Handler/Debug.php 1 location
|
@@ 86-93 (lines=8) @@
|
| 83 |
|
'reset' => '', |
| 84 |
|
]; |
| 85 |
|
|
| 86 |
|
if (PHP_SAPI === 'cli') { |
| 87 |
|
$colors = [ |
| 88 |
|
'red' => "\x1b[31;01m", |
| 89 |
|
'yellow' => "\x1b[33;01m", |
| 90 |
|
'cyan' => "\x1b[36;01m", |
| 91 |
|
'reset' => "\x1b[39;49;00m", |
| 92 |
|
]; |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
return function (\Psr\Http\Message\RequestInterface $request, array $config) use ($handler, $colors) { |
| 96 |
|
return $handler($request, $config)->then( |
src/Handler/Verbose.php 1 location
|
@@ 94-101 (lines=8) @@
|
| 91 |
|
'reset' => '', |
| 92 |
|
]; |
| 93 |
|
|
| 94 |
|
if (PHP_SAPI === 'cli') { |
| 95 |
|
$colors = [ |
| 96 |
|
'red' => "\x1b[31;01m", |
| 97 |
|
'yellow' => "\x1b[33;01m", |
| 98 |
|
'cyan' => "\x1b[36;01m", |
| 99 |
|
'reset' => "\x1b[39;49;00m", |
| 100 |
|
]; |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
return function ( |
| 104 |
|
\Psr\Http\Message\RequestInterface $request, |