Skip to content

help: Is there a way to get php-cs-fixer to keep curly brace on function declaration line? #799

Description

@rew1nter
  ["php-cs-fixer"] = {
            command = "php-cs-fixer",
            args = { "fix", "--rules=@PSR12", "$FILENAME" },
            stdin = false,
        },

So far I've tried this and other things with other formatters. They all send the curly brace to new line upon formatting, like this

function read() 
{
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions