
single_line_comment_spacing
¶Single-line comments must have proper spacing.
--- Original
+++ New
<?php
-//comment 1
-#comment 2
-/*comment 3*/
+// comment 1
+# comment 2
+/* comment 3 */
The rule is part of the following rule sets:
Using the @PhpCsFixer rule set will enable the single_line_comment_spacing
rule.
Using the @Symfony rule set will enable the single_line_comment_spacing
rule.