Fork me on GitHub
a Sensio Labs Product

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

Rule single_line_comment_spacingΒΆ

Single-line comments must have proper spacing.

ExamplesΒΆ

Example #1ΒΆ

--- Original
+++ New
 <?php
-//comment 1
-#comment 2
-/*comment 3*/
+// comment 1
+# comment 2
+/* comment 3 */

Rule setsΒΆ

The rule is part of the following rule sets:

Source classΒΆ

PhpCsFixer\Fixer\Comment\SingleLineCommentSpacingFixer