Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 674 Bytes

phpdoc_indent.rst

File metadata and controls

40 lines (30 loc) · 674 Bytes

Rule phpdoc_indent

Docblocks should have the same indentation as the documented subject.

Examples

Example #1

--- Original
+++ New
 <?php
 class DocBlocks
 {
-/**
- * Test constants
- */
+    /**
+     * Test constants
+     */
     const INDENT = 1;
 }

Rule sets

The rule is part of the following rule sets:

Source class

PhpCsFixer\Fixer\Phpdoc\PhpdocIndentFixer