Skip to content

Clarity about using some rules #207

@faizanakram99

Description

@faizanakram99

Hi,

Thanks for this library, I just swtiched from php-cs-fixer due to its lack of support for property hooks.

We used a config based on symfony with slight changes like collapse empty braces if empty

    'single_line_empty_body' => true,
    'braces_position' => [
            'allow_single_line_anonymous_functions' => true,
            'allow_single_line_empty_anonymous_classes' => true,
    ],

how do i set these configs along with symfony preset, if i don't use symfony preset, braces are in the same line as function or class declaration if empty (i guess that is PER complaint styling), but then space is removed between function and brackets

- function ()
+ function()

I prefer the former.

Overall, it is not clear how to change individual rules.

Also, it would be pretty cool if it could read php-cs-fixer config files.

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