src/mako/cli/output/helpers/Alert.php
protected function format(string $string): string
	{
		$lineWidth = $this->width - (static::PADDING * 2);

		$lines = explode(PHP_EOL, PHP_EOL . $this->wordWrap($string, $lineWidth) . PHP_EOL);

		foreach($lines as $key => $value)
		{
			$value = $this->escape($value) . str_repeat(' ', $lineWidth - mb_strlen($value));

			$lines[$key] = sprintf('%1$s%2$s%1$s', str_repeat(' ', static::PADDING), $value);
		}

		return implode(PHP_EOL, $lines);
	}
protected function format(string $string): string
	{
		$lineWidth = $this->width - (static::PADDING * 2);

		$lines = explode(PHP_EOL, PHP_EOL . $this->wordWrap($string, $lineWidth) . PHP_EOL);

		foreach($lines as $key => $value)
		{
			$value = $this->escape($value) . str_repeat(' ', $lineWidth - mb_strlen($value));

			$lines[$key] = sprintf('%1$s%2$s%1$s', str_repeat(' ', static::PADDING), $value);
		}

		return implode(PHP_EOL, $lines);
	}
protected function format ( string $ string ) : string { $ lineWidth = $ this -> width - ( static :: PADDING * 2 ) ; $ lines = explode ( PHP_EOL , PHP_EOL . $ this -> wordWrap ( $ string , $ lineWidth ) . PHP_EOL ) ; foreach ( $ lines as $ key => $ value ) { $ value = $ this -> escape ( $ value ) . str_repeat ( ' ' , $ lineWidth - mb_strlen ( $ value ) ) ; $ lines [ $ key ] = sprintf ( '%1$s%2$s%1$s' , str_repeat ( ' ' , static :: PADDING ) , $ value ) ; } return implode ( PHP_EOL , $ lines ) ; }
Formats the string.

@param  string $string String
@return string
Formats the string .