Skip to content

Files

Latest commit

 

History

History
46 lines (36 loc) · 941 Bytes

phpdoc_trim_consecutive_blank_line_separation.rst

File metadata and controls

46 lines (36 loc) · 941 Bytes

Rule phpdoc_trim_consecutive_blank_line_separation

Removes extra blank lines after summary and after description in PHPDoc.

Examples

Example #1

--- Original
+++ New
 <?php
 /**
  * Summary.
  *
- *
  * Description that contain 4 lines,
  *
  *
  * while 2 of them are blank!
  *
- *
  * @param string $foo
- *
  *
  * @dataProvider provideFixCases
  */
 function fnc($foo) {}

Rule sets

The rule is part of the following rule sets:

Source class

PhpCsFixer\Fixer\Phpdoc\PhpdocTrimConsecutiveBlankLineSeparationFixer