Skip to content

Files

Latest commit

 

History

History
16 lines (9 loc) · 688 Bytes

SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator.md

File metadata and controls

16 lines (9 loc) · 688 Bytes

Pattern: Missing use of multi-line ternary operator

Issue: -

Description

Ternary operator has to be reformatted to more lines when the line length exceeds the given limit.

Rule provides the following settings:

  • lineLengthLimit (defaults to 0)
  • minExpressionsLength (defaults to null): when the expressions after ? are shorter than this length, the ternary operator does not have to be reformatted.

Further Reading