Closed zcodes closed 6 years ago
I fixed this issue by adding some code, see 549263acc, but this is hacky.
@zcodes thanks for your attempted fix. It was a bit more complex though. This should be fixed now. Please try it and tell me how it does.
I close the issue for now but I'll reopen it if necessary.
@2072 Thank you for your work!
this fix introduced two new problems now!
different indent style
$user_name_very_long->name()
->age()
->info();
$user_name_very_long
->name()
->age()
->info();
i think the better indent for first condition is like this,
// this is just use a &sw for continuous indent, just like phpstorm, sublime or other editors
// different indent style may be cause problem when work in a team.
//
// or may be provide an option for configure this ?
$user_name_very_long->name()
->age()
->info();
indent error with combined arrow and closure
$query
->where(function ($query) {
$query->where('name', 'user');
});
Ok this should do it. Please test if everything is all right. Sorry for the delay.