laravel / pint

Laravel Pint is an opinionated PHP code style fixer for minimalists.
https://laravel.com/docs/pint
MIT License
2.75k stars 138 forks source link

Add support for multiline method chain calls #280

Closed i0FFLINE closed 2 months ago

i0FFLINE commented 2 months ago

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!

driesvints commented 2 months ago

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.