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

PHP how to put braces on new lines #1967

Closed
philippejadin opened this issue Nov 30, 2017 · 1 comment
Closed

PHP how to put braces on new lines #1967

philippejadin opened this issue Nov 30, 2017 · 1 comment
Labels

Comments

@philippejadin
Copy link

philippejadin commented Nov 30, 2017

Description

I'm really sorry to bother you with this but I really could not find an answer anywhere.

How can I have atom-beautify to put braces on new line in control structures?

Using php and php csfixer (I'm open to other php fixers if that could help)

The goal would be to follow psr2 except for the braces that I'd like to have on new lines everytime.

Input Before Beautification

This is what the code looked like before:

<?php
if ($blah) {
test();
}
?>

Expected Output

The beautified code should have looked like this:

<?php
if ($blah) 
{
    test();
}
?>
@stale
Copy link

stale bot commented Jan 29, 2018

This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

1 participant