Skip to content

Conversation

@paulbalandan
Copy link
Member

Description

$ vendor/bin/php-cs-fixer describe function_declaration
Description of function_declaration rule.
Spaces should be properly placed in a function declaration.

Fixer is configurable using following options:
* closure_function_spacing ('none', 'one'): spacing to use before open parenthesis for closures; defaults to 'one'
* trailing_comma_single_line (bool): whether trailing commas are allowed in single line signatures; defaults to false

...

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 merged commit 872479b into codeigniter4:develop Sep 9, 2022
@paulbalandan paulbalandan deleted the function-declaration branch September 9, 2022 02:07
paulbalandan added a commit to CodeIgniter/coding-standard that referenced this pull request Sep 9, 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