public function apply($style, $text = null) { if ($text === null) { $this->wrapped = $this->stylize($style, $this->wrapped); return $this; } return $this->stylize($style, $text); }
public function error() { if ($this->color) { $this->writer->write($this->color->apply('bg_red', 'X')); $this->progress(); } else { parent::error(); } }