Webmozart\Console\Api\Formatter\Formatter::format PHP Method

format() public method

Formats the given string.
public format ( string $string, Style $style = null ) : string
$string string The string to format.
$style Style The style to use.
return string The formatted string.
    public function format($string, Style $style = null);

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  */
 public function format($message)
 {
     if ($this->decorated) {
         return $this->adaptedFormatter->format($message);
     }
     return $this->adaptedFormatter->removeFormat($message);
 }
All Usage Examples Of Webmozart\Console\Api\Formatter\Formatter::format