@@ -37,7 +37,7 @@ protected function describeInputArgument(InputArgument $argument, array $options
37
37
38
38
$ nameWidth = isset ($ options ['name_width ' ]) ? $ options ['name_width ' ] : strlen ($ argument ->getName ());
39
39
$ output = str_replace ("\n" , "\n" .str_repeat (' ' , $ nameWidth + 2 ), $ argument ->getDescription ());
40
- $ output = sprintf (" <info>%- $ { nameWidth}s</info> %s%s " , $ argument ->getName (), $ output , $ default );
40
+ $ output = sprintf (" <info>%- { $ nameWidth }s</info> %s%s " , $ argument ->getName (), $ output , $ default );
41
41
42
42
return isset ($ options ['raw_text ' ]) && $ options ['raw_text ' ] ? strip_tags ($ output ) : $ output ;
43
43
}
@@ -56,7 +56,7 @@ protected function describeInputOption(InputOption $option, array $options = arr
56
56
$ nameWidth = isset ($ options ['name_width ' ]) ? $ options ['name_width ' ] : strlen ($ option ->getName ());
57
57
$ nameWithShortcutWidth = $ nameWidth - strlen ($ option ->getName ()) - 2 ;
58
58
59
- $ output = sprintf (" <info>%s</info> %- $ { nameWithShortcutWidth}s%s%s%s " ,
59
+ $ output = sprintf (" <info>%s</info> %- { $ nameWithShortcutWidth }s%s%s%s " ,
60
60
'-- ' .$ option ->getName (),
61
61
$ option ->getShortcut () ? sprintf ('(-%s) ' , $ option ->getShortcut ()) : '' ,
62
62
str_replace ("\n" , "\n" .str_repeat (' ' , $ nameWidth + 2 ), $ option ->getDescription ()),
@@ -146,7 +146,7 @@ protected function describeApplication(Application $application, array $options
146
146
$ width = $ this ->getColumnWidth ($ description ->getCommands ());
147
147
148
148
foreach ($ description ->getCommands () as $ command ) {
149
- $ messages [] = sprintf ("%- $ { width}s %s " , $ command ->getName (), $ command ->getDescription ());
149
+ $ messages [] = sprintf ("%- { $ width }s %s " , $ command ->getName (), $ command ->getDescription ());
150
150
}
151
151
} else {
152
152
$ width = $ this ->getColumnWidth ($ description ->getCommands ());
@@ -167,7 +167,7 @@ protected function describeApplication(Application $application, array $options
167
167
}
168
168
169
169
foreach ($ namespace ['commands ' ] as $ name ) {
170
- $ messages [] = sprintf (" <info>%- $ { width}s</info> %s " , $ name , $ description ->getCommand ($ name )->getDescription ());
170
+ $ messages [] = sprintf (" <info>%- { $ width }s</info> %s " , $ name , $ description ->getCommand ($ name )->getDescription ());
171
171
}
172
172
}
173
173
}
0 commit comments