Skip to content

Conversation

samuelmaudo
Copy link
Contributor

This PR recovers a rule to indent chained methods consistently.

With this rule, this code:

$user->setEmail('voff.web@gmail.com')
         ->setPassword('233434');

becomes:

$user->setEmail('voff.web@gmail.com')
    ->setPassword('233434');

It was included in the PHP CS Fixer ruleset, so if we replace it by the Symfony ruleset, it might be interesting to include it in our ruleset.

@samuelmaudo samuelmaudo self-assigned this Oct 4, 2024
@samuelmaudo samuelmaudo changed the title Add method_chaining_indentation fixer Add method_chaining_indentation rule Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant