Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Don't count split function parameters as new lines. #24

Open
rompetomp opened this issue May 14, 2021 · 0 comments
Open

Don't count split function parameters as new lines. #24

rompetomp opened this issue May 14, 2021 · 0 comments

Comments

@rompetomp
Copy link

Currently, when there's a function with multiple (long) parameters, we write them all on 1 line, because otherwise it would count for the file-max-size-limit we have. Example:

    public function testFunction($one, $two, $three, $four, $five, $six, $seven, $eight, $nine, $ten)
    {
    }

As you can see, this counts as 3 lines.
What we would like to have is this:

    public function testFunction(
        $one,
        $two,
        $three,
        $four,
        $five,
        $six,
        $seven,
        $eight,
        $nine,
        $ten
    ) {
    }

And still have it count as 3 lines instead of 13

Would that be possible to have an option to handle this?

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant