Skip to content

feat: PhpCsFixer ruleset: use operator_linebreak rule for all operators#8417

Merged
kubawerlos merged 4 commits intoPHP-CS-Fixer:masterfrom
mvorisek:operator_linebreak_all
Feb 20, 2025
Merged

feat: PhpCsFixer ruleset: use operator_linebreak rule for all operators#8417
kubawerlos merged 4 commits intoPHP-CS-Fixer:masterfrom
mvorisek:operator_linebreak_all

Conversation

@mvorisek
Copy link
Copy Markdown
Contributor

@mvorisek mvorisek commented Feb 8, 2025

. and ? (part of ternary operator) operators should definitely be placed consistently and on the begginning (as almost solely CS used already).

= placed on a new line is little -0 from me, but if there is a strong will to place it at the end, the operator_linebreak rule can be improved later. But IMO on CS, there should be no NL after = at all. So I fixed these changes in the last commit.

@mvorisek mvorisek changed the title PhpCsFixer ruleset: use operator_linebreak rule for all operator feat PhpCsFixer ruleset: use operator_linebreak rule for all operator Feb 8, 2025
@mvorisek mvorisek changed the title feat PhpCsFixer ruleset: use operator_linebreak rule for all operator feat: PhpCsFixer ruleset: use operator_linebreak rule for all operator Feb 8, 2025
@mvorisek mvorisek changed the title feat: PhpCsFixer ruleset: use operator_linebreak rule for all operator feat: PhpCsFixer ruleset: use operator_linebreak rule for all operator Feb 8, 2025
@mvorisek mvorisek force-pushed the operator_linebreak_all branch from 09926ee to 4e43910 Compare February 8, 2025 14:23
@mvorisek mvorisek force-pushed the operator_linebreak_all branch from 4e43910 to 36ca9e5 Compare February 8, 2025 14:27
@mvorisek mvorisek marked this pull request as ready for review February 8, 2025 14:28
@mvorisek mvorisek changed the title feat: PhpCsFixer ruleset: use operator_linebreak rule for all operator feat: PhpCsFixer ruleset: use operator_linebreak rule for all operators Feb 8, 2025
@kubawerlos kubawerlos requested a review from keradus February 8, 2025 15:28
@kubawerlos kubawerlos merged commit 562d11e into PHP-CS-Fixer:master Feb 20, 2025
@kubawerlos
Copy link
Copy Markdown
Member

Thank you @mvorisek

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants