Skip to content

Files

Latest commit

 

History

History
16 lines (9 loc) · 611 Bytes

SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace.md

File metadata and controls

16 lines (9 loc) · 611 Bytes

Pattern: Malformed whitespace for single-line array

Issue: -

Description

Checks whitespace in single line array declarations (whitespace between brackets, around commas, ...).

Rule provides the following settings:

  • spacesAroundBrackets: number of spaces you require to have around array brackets
  • enableEmptyArrayCheck (defaults to false): enables check for empty arrays

Further Reading