コード例 #1
0
 /**
  * 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());
 }