Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Odd indentation in PHP upon hitting Enter at certain times #1427
Sometimes upon hitting enter inside a function call you end up in the same column on the next line.
Steps to Reproduce
Paste what is in the example below, place cursor between the brackets, hit enter.
return view('blah', );
You will end up with the actual result listed below.
return view('blah', [ ^ ])
return view('blah', [ ^])
Komodo Edit or IDE? IDE
I can see that in normal flow, the characters to the right, brackets or parentheses, are underlined. When they aren't underlined this issue will happen.
These examples are specific to using brackets. If there are no brackets open hitting enter will align the closing parenthesis with the opening one.
I still get this from time to time. Sometimes it doesn't provide the other bracket.
It feels like some race condition because its not constant.
return view('blah', [ ^)
Komodo IDE, version 10.1.1, build 89474, platform linux-x86_64.