Skip to content

Conversation

@paulbalandan
Copy link
Member

Description

$ vendor/bin/php-cs-fixer describe single_line_comment_spacing
Description of single_line_comment_spacing rule.
Single-line comments must have proper spacing.

Fixing examples:
 * Example #1.
   ---------- begin diff ----------
   --- Original
   +++ New
   @@ -1,4 +1,4 @@
    <?php
   -//comment 1
   -#comment 2
   -/*comment 3*/
   +// comment 1
   +# comment 2
   +/* comment 3 */

   ----------- end diff ----------

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@paulbalandan paulbalandan force-pushed the single_line_comment_spacing branch from b7f031f to 5a182de Compare September 4, 2022 15:11
@MGatner MGatner merged commit a5154bf into codeigniter4:develop Sep 4, 2022
@paulbalandan paulbalandan deleted the single_line_comment_spacing branch September 5, 2022 02:41
@kenjis kenjis mentioned this pull request Sep 6, 2022
5 tasks
paulbalandan added a commit to CodeIgniter/coding-standard that referenced this pull request Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants