/** * Returns the line count of the message based on the terminal width. * * @param string $message * * @return int */ private function getMessageLineCount($message) { $messageLength = FormatterHelper::strlenWithoutDecoration($this->output->getFormatter(), $message); return ceil($messageLength / $this->getTerminalWidth()); }