Skip to content

Files

Latest commit

 

History

History
16 lines (9 loc) · 658 Bytes

SlevomatCodingStandard.Functions.RequireSingleLineCall.md

File metadata and controls

16 lines (9 loc) · 658 Bytes

Pattern: Missing use of single-line call

Issue: -

Description

Enforces function call to be on a single line.

Rule provides the following settings:

  • maxLineLength: specifies max allowed line length. If call would fit on it, it's enforced. Use 0 value to enforce for all calls, regardless of length.
  • ignoreWithComplexParameter (defaults to true): ignores calls with arrays, closures, arrow functions and nested calls.

Further Reading