Skip to content

Support for PER Coding Style 2.0 #155

Description

@taka-oyama

We use php-cs-fixer to format out code to be aligned with PER coding style.

This library comes close by supporting PSR-12 but there are some minor differences.

One in particular that we've encountered is how multi-line methods are formatted.

PSR-12 output the below

    public function add(
        ?string $id,
    ): void
    {

but PER wants it to be like this.

    public function add(
        ?string $id,
    ): void {

We get diffs in our git everytime we generate the new code and it's very cumbersome.

Would it be possible to add support for this?

Btw, thanks for creating this great library. We use it in almost all our projects and is a joy to use.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions