Skip to content

Files

Latest commit

 

History

History
19 lines (12 loc) · 997 Bytes

SlevomatCodingStandard.Classes.TraitUseSpacing.md

File metadata and controls

19 lines (12 loc) · 997 Bytes

Pattern: Malformed use spacing

Issue: -

Description

Enforces configurable number of lines before first use, after last use and between two use statements.

Rule provides the following settings:

  • linesCountBeforeFirstUse: allows to configure the number of lines before first use.
  • linesCountBeforeFirstUseWhenFirstInClass: allows to configure the number of lines before first use when the use is the first statement in the class.
  • linesCountBetweenUses: allows to configure the number of lines between two use statements.
  • linesCountAfterLastUse: allows to configure the number of lines after last use.
  • linesCountAfterLastUseWhenLastInClass: allows to configure the number of lines after last use when the use is the last statement in the class.

Further Reading