We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c82c585 commit e30bd02Copy full SHA for e30bd02
src/Console/ClishCommand.php
@@ -66,9 +66,8 @@ public function interact(Interactor $io)
66
public function execute()
67
{
68
$code = $this->file ? \file_get_contents($this->file) : $this->code;
69
- $code = \trim($code);
70
71
- if ('' === $code) {
+ if ('' === \trim($code)) {
72
return;
73
}
74
@@ -79,7 +78,7 @@ public function execute()
79
78
protected function doHighlight(string $code = null)
80
81
if (!$this->output || $this->echo) {
82
- echo new Highlighter($code);
+ $this->app()->io()->raw((string) new Highlighter($code));
83
84
85
0 commit comments