8000 merged branch gnugat/refactoring/console-get-help (PR #6789) · symfony/symfony@d120117 · GitHub
[go: up one dir, main page]

Skip to content

Commit d120117

Browse files
committed
merged branch gnugat/refactoring/console-get-help (PR #6789)
This PR was squashed before being merged into the master branch (closes #6789). Commits ------- 917f473 [Console] Removing unnecessary sprintf in Application->getHelp Discussion ---------- [Console] Removing unnecessary sprintf in Application->getHelp Minor change of the `Symfony\Component\Console\Application->getHelp()` method. I have spotted: 1. an unnecessary `sprintf` call (no `args` arguments); 2. two ways of adding a new line in the help (an empty string as new entry of the array and a `\n` at the end of the string). It seems to be there since the begining and it looks like a forgoten change to me, so I fixed them by removing the `sprintf` call and using a new array entry (empty string) instead of the `\n`. | Q | A | ------------- | --- | License | MIT
2 parents a04d5d6 + 917f473 commit d120117

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ public function getHelp()
253253
$this->getLongVersion(),
254254
'',
255255
'<comment>Usage:</comment>',
256-
sprintf(" [options] command [arguments]\n"),
256+
' [options] command [arguments]',
257+
'',
257258
'<comment>Options:</comment>',
258259
);
259260

0 commit comments

Comments
 (0)
0