src/Console.php
public function format($message)
    {
        if (!$this->output) {
            throw new \LogicException('A ConsoleOutputInterface must be set before calling format().');
        }

        return $this->output->getFormatter()->format($message);
    }
public function format($message)
    {
        if (!$this->output) {
            throw new \LogicException('A ConsoleOutputInterface must be set before calling format().');
        }

        return $this->output->getFormatter()->format($message);
    }
public function format ( $ message ) { if ( ! $ this -> output ) { throw new \ LogicException ( 'A ConsoleOutputInterface must be set before calling format().' ) ; } return $ this -> output -> getFormatter ( ) -> format ( $ message ) ; }
Formats a message.

@param $message
@return string
@throws \LogicException When called before Output is set.
Formats a message .