File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
tests/Integration/Fixtures Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 124124use PhpCsFixer \Fixer \Phpdoc \PhpdocScalarFixer ;
125125use PhpCsFixer \Fixer \Phpdoc \PhpdocSingleLineVarSpacingFixer ;
126126use PhpCsFixer \Fixer \Phpdoc \PhpdocToCommentFixer ;
127+ use PhpCsFixer \Fixer \Phpdoc \PhpdocTrimConsecutiveBlankLineSeparationFixer ;
127128use PhpCsFixer \Fixer \Phpdoc \PhpdocTrimFixer ;
128129use PhpCsFixer \Fixer \Phpdoc \PhpdocTypesFixer ;
129130use PhpCsFixer \Fixer \Phpdoc \PhpdocVarAnnotationCorrectOrderFixer ;
371372 PhpdocScalarFixer::class,
372373 // Single line `@var` PHPDoc should have proper spacing.
373374 PhpdocSingleLineVarSpacingFixer::class,
375+ // Removes extra blank lines after summary and after description in PHPDoc.
376+ PhpdocTrimConsecutiveBlankLineSeparationFixer::class,
374377 // PHPDoc should start and end with content
375378 PhpdocTrimFixer::class,
376379 // Docblocks should only be used on structural elements.
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ class PhpDoc
1212
1313 /**
1414 * Very well documented method.
15- * It tests PhpdocAlignFixer, NoSuperfluousPhpdocTagsFixer and possibly other Phpdoc rules.
15+ * It tests PhpdocAlignFixer, NoSuperfluousPhpdocTagsFixer, PhpdocTrimConsecutiveBlankLineSeparationFixer
16+ * and possibly other Phpdoc rules.
17+ *
1618 * @param int|float $second Second parameter does have a comment, unlike the first one.
1719 * @param string|null $third Third parameter is optional and has a default value.
1820 * @return mixed There is also information about return type.
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ class PhpDoc
1515
1616 /**
1717 * Very well documented method.
18- * It tests PhpdocAlignFixer, NoSuperfluousPhpdocTagsFixer and possibly other Phpdoc rules.
18+ * It tests PhpdocAlignFixer, NoSuperfluousPhpdocTagsFixer, PhpdocTrimConsecutiveBlankLineSeparationFixer
19+ * and possibly other Phpdoc rules.
20+ *
21+ *
22+ *
1923 * @param string $first
2024 * @throws \Exception
2125 * @param int|float $second Second parameter does have a comment, unlike the first one.
You can’t perform that action at this time.
0 commit comments