laravel/pint

Add support for multiline method chain calls

i0FFLINE opened this issue · 1 comments

I have calls in my projects that are 300-400 characters long.
After a pint, I get a hard-to-read code.
I need an option that will ignore the chain collapsing into one line after N characters long of the string.

i imagine rules as in the phpStorm:

"chained_methods_calls": {
    "inline": Boolean,
    "ignore_at_length": Number,
    "align_when_multiline": Boolean
}

Pint is great!

Hi there. I'm not sure Pint is the right place to ask this question. You might want to try the base PHP CS Fixer repo instead.