PHPCSStandards / PHPCSExtra

A collection of code standards for use with PHP_CodeSniffer
GNU Lesser General Public License v3.0
90 stars 8 forks source link

:sparkles: New `Universal.Operators.ConcatPosition` sniff #294

Closed jrfnl closed 9 months ago

jrfnl commented 9 months ago

... to enforce that the concatenation operator for multi-line concatenations is in a preferred position, either always at the start of the next line or always at the end of the previous line.

The preferred position is configurable via an allowOnly property, which accepts the text strings "start" or "end". The default is "start".

Includes fixer. Includes unit tests. Includes documentation. Includes metrics.