Skip to content

Enable no_multiple_statements_per_line #6481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

paulbalandan
Copy link
Member

Description

$ vendor/bin/php-cs-fixer describe no_multiple_statements_per_line  
Description of no_multiple_statements_per_line rule.
There must not be more than one statement per line.

Fixing examples:
 * Example #1.
   ---------- begin diff ----------
   --- Original
   +++ New
   @@ -1,2 +1,3 @@
    <?php
   -foo(); bar();
   +foo();
   +bar();

   ----------- 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 no_multiple_statements_per_line branch from 14b70f7 to a275427 Compare September 4, 2022 12:32
@paulbalandan paulbalandan merged commit 65398c3 into codeigniter4:develop Sep 4, 2022
@paulbalandan paulbalandan deleted the no_multiple_statements_per_line branch September 4, 2022 12:34
paulbalandan added a commit to CodeIgniter/coding-standard that referenced this pull request Sep 4, 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.

3 participants