Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 952 Bytes

multiline_comment_opening_closing.rst

File metadata and controls

47 lines (34 loc) · 952 Bytes

Rule multiline_comment_opening_closing

DocBlocks must start with two asterisks, multiline comments must start with a single asterisk, after the opening slash. Both must end with a single asterisk before the closing slash.

Examples

Example #1

--- Original
+++ New
 <?php

-/******
+/*
  * Multiline comment with arbitrary asterisks count
- ******/
+ */

-/**\
+/*\
  * Multiline comment that seems a DocBlock
  */

 /**
  * DocBlock with arbitrary asterisk count at the end
- **/
+ */

Rule sets

The rule is part of the following rule set:

Source class

PhpCsFixer\Fixer\Comment\MultilineCommentOpeningClosingFixer