Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) edition

Rule phpdoc_trimΒΆ

PHPDoc should start and end with content, excluding the very first and last line of the docblocks.

ExamplesΒΆ

Example #1ΒΆ

--- Original
+++ New
 <?php
 /**
- *
  * Foo must be final class.
- *
- *
  */
 final class Foo {}

Rule setsΒΆ

The rule is part of the following rule sets:

Source classΒΆ

PhpCsFixer\Fixer\Phpdoc\PhpdocTrimFixer