Skip to content

Incorrect array opening tag placement #35

Description

@krzysztofrewak

Right now things like this:

        $software->versions()->update(["default_version" => false]);
        $version->update(["default_version" => true]);

are refactored into this:

        $software->versions()->update([
            "default_version" => false,
        ]);
        $version->update([
            "default_version" => true,
        ]);

And it's nice, but PSR-12 codestyle in PHPStorm is sometimes changing it into this:

            $software->versions()->update(
                [
                    "default_version" => false,
                ],
            );
            $version->update(
                [
                    "default_version" => true,
                ],
            );

We should not allow to have [ in new line, I think.

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

    new ruleNew rules for ECS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions