@@ -63,13 +63,14 @@ public function __construct(InputInterface $input, OutputInterface $output)
63
63
* @param string|null $style The style to apply to the whole block
64
64
* @param string $prefix The prefix for the block
65
65
* @param bool $padding Whether to add vertical padding
66
+ * @param bool $escape Whether to escape the message
66
67
*/
67
- public function block ($ messages , $ type = null , $ style = null , $ prefix = ' ' , $ padding = false )
68
+ public function block ($ messages , $ type = null , $ style = null , $ prefix = ' ' , $ padding = false , $ escape = true )
68
69
{
69
70
$ messages = is_array ($ messages ) ? array_values ($ messages ) : array ($ messages );
70
71
71
72
$ this ->autoPrependBlock ();
72
- $ this ->writeln ($ this ->createBlock ($ messages , $ type , $ style , $ prefix , $ padding , true ));
73
+ $ this ->writeln ($ this ->createBlock ($ messages , $ type , $ style , $ prefix , $ padding , $ escape ));
73
74
$ this ->newLine ();
74
75
}
75
76
@@ -133,11 +134,7 @@ public function text($message)
133
134
*/
134
135
public function comment ($ message )
135
136
{
136
- $ messages = is_array ($ message ) ? array_values ($ message ) : array ($ message );
137
-
138
- $ this ->autoPrependBlock ();
139
- $ this ->writeln ($ this ->createBlock ($ messages , null , null , '<fg=default;bg=default> // </> ' ));
140
- $ this ->newLine ();
137
+ $ this ->block ($ message , null , null , '<fg=default;bg=default> // </> ' , false , false );
141
138
}
142
139
143
140
/**
0 commit comments