Skip to content
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

Spaces after class declaration #415

Open
schechterab opened this issue Nov 3, 2021 · 0 comments
Open

Spaces after class declaration #415

schechterab opened this issue Nov 3, 2021 · 0 comments

Comments

@schechterab
Copy link

I have a class declaration like:
class Company extends Model implements
Class1,
Class2,
ReallyLongClassNameThatPushesMeOverLineLimitClass3
{

If I put all the "implements" names on one line, I get flagged for a line length violation in PHP code checkers. I have format_on_save = true, in codeformatter_php_options.

When I save, the spaces are automatically removed in front of the class names, causing a code formatting violation in the code checker. Is this a bug, or is there some setting I can add so that these spaces will be retained and code will stay in the proper format?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant