Skip to content

Generic.Classes.OpeningBraceSameLine doesn't detect comment before opening brace #1448

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

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented May 7, 2017

There might be a comment between the opening brace and the last part of the class declaration.
The sniff currently did not take that into account.

Fixed including unit test demonstrating the issue.

…rio.

There might be a comment between the opening brace and the last part of the class declaration.
The sniff currently did not take that into account.

Fixed including unit test demonstrating the issue.
@gsherwood gsherwood changed the title Generic.Classes.OpeningBraceSameLine: Minor tweak for edge case scenario / 2.x Generic.Classes.OpeningBraceSameLine doesn't detect comment before opening brace May 9, 2017
@gsherwood gsherwood merged commit 8041fc5 into squizlabs:2.9 May 9, 2017
gsherwood added a commit that referenced this pull request May 9, 2017
@gsherwood
Copy link
Member

Thanks

@jrfnl jrfnl deleted the feature/2.x-generic-classbracesameline-minor-fix branch May 9, 2017 00:31
@trasher trasher mentioned this pull request May 23, 2017
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.

2 participants