8000 [Console] SymfonyStyle: Fix alignment/prefixing of multi-line comments by chalasr · Pull Request #18889 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] SymfonyStyle: Fix alignment/prefixing of multi-line comments #18889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2016

Conversation

chalasr
Copy link
Member
@chalasr chalasr commented May 26, 2016
Q A
Branch? 2.8
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

Pointed in #18564 (comment).

Very-long-line comment:

SymfonyStyle::comment('Lorem ipsum ...');

Before:

After:

Multi-line comment:

SymfonyStyle::comment(['Lorem ipsum...', 'Lorem ipsum...']);

Before:

After:

@chalasr
Copy link
Member Author
chalasr commented May 27, 2016

This is the missing part of the recently merged #18879.
Travis failure is unrelated.

@chalasr chalasr force-pushed the patch_sfstyle_comments branch 2 times, most recently from 9860fef to 71dfb1f Compare May 29, 2016 12:52
@fabpot
Copy link
Member
fabpot commented May 29, 2016

Are you sure that the failed tests are not related to these changes?

@chalasr
Copy link
Member Author
chalasr commented May 29, 2016

@fabpot You're right, the problem comes from these changes.
I can't figure it out for now so I let you know when it's ok.
If you have any idea...

@chalasr chalasr force-pushed the patch_sfstyle_comments branch 2 times, most recently from a45cf0f to 36e2ebf Compare May 29, 2016 18:08
CS Fixes

Add tests

Add docblock

Fix side effect on FrameworkBundle tests

Remove useless '\n' from TextDescriptor since comments are block
@chalasr chalasr force-pushed the patch_sfstyle_comments branch from 36e2ebf to 1c94fea Compare May 29, 2016 18:12
@xabbuh
Copy link
Member
xabbuh commented May 29, 2016

👍

Status: Reviewed

@fabpot
Copy link
Member
fabpot commented May 30, 2016

Thank you @chalasr.

@fabpot fabpot merged commit 1c94fea into symfony:2.8 May 30, 2016
fabpot added a commit that referenced this pull request May 30, 2016
…ine comments (chalasr)

This PR was merged into the 2.8 branch.

Discussion
----------

[Console] SymfonyStyle: Fix alignment/prefixing of multi-line comments

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Pointed in #18564 (comment).

Very-long-line comment:
```php
SymfonyStyle::comment('Lorem ipsum ...');
```

Before:
![](http://image.prntscr.com/image/9190081d7fd740a89d17a7247dbbb244.png)

After:
![](http://image.prntscr.com/image/109c8c19c1574172bc22199ac90b6dd6.png)

Multi-line comment:
```php
SymfonyStyle::comment(['Lorem ipsum...', 'Lorem ipsum...']);
```

Before:
![](http://image.prntscr.com/image/24228f7e89e647b3a5d66fd83c7216cd.png)

After:
![](http://image.prntscr.com/image/fe9320369fad45acab92564f0e5de344.png)

Commits
-------

1c94fea [Console] SymfonyStyle: Fix alignment/prefixing of multi-line comments
@fabpot fabpot mentioned this pull request May 30, 2016
This was referenced Jun 6, 2016
@chalasr chalasr deleted the patch_sfstyle_comments branch June 24, 2016 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0