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

Arrow operator chain indentation #1

Open
ofbeaton opened this issue Jul 27, 2015 · 0 comments
Open

Arrow operator chain indentation #1

ofbeaton opened this issue Jul 27, 2015 · 0 comments

Comments

@ofbeaton
Copy link
Owner

Right now code like:

$myclass
  ->add()
  ->filter('haha')
  ->clone();

doesn't work. It wants to put it all on a single line, which is not very readable for operators like this. Will need to verify if PSR-2 speaks to this, and if not, then figure out how to fix it up.

Right now phpcbf is putting up into a single line but it doesn't do it properly, leaving too much spacing between $myclass and the first ->.

Consider upstream implications, we may be able to get this done elsewhere.

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

No branches or pull requests

1 participant