Skip to content

Commit 72150c7

Browse files
committed
[Console] SymfonyStyle: Fix alignment/prefixing of multi-line comments
CS Fixes Add tests Add docblock Fix side effect on FrameworkBundle tests Remove useless '\n' from TextDescriptor since comments are block
1 parent 4f2caf2 commit 72150c7

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Console/Descriptor/TextDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
339339
*/
340340
protected function describeContainerAlias(Alias $alias, array $options = array())
341341
{
342-
$options['output']->comment(sprintf("This service is an alias for the service <info>%s</info>\n", (string) $alias));
342+
$options['output']->comment(sprintf('This service is an alias for the service <info>%s</info>', (string) $alias));
343343
}
344344

345345
/**

Tests/Fixtures/Descriptor/alias_1.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
// This service is an alias for the service service_1
1+
2+
// This service is an alias for the service service_1
3+

Tests/Fixtures/Descriptor/alias_2.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
// This service is an alias for the service service_2
1+
2+
// This service is an alias for the service service_2
3+

0 commit comments

Comments
 (0)