wp-cli / scaffold-command

Generates code for post types, taxonomies, blocks, plugins, child themes, etc.
MIT License
165 stars 87 forks source link

PHPCS: fix up the code base [5] - multi-line function calls #215

Closed jrfnl closed 5 years ago

jrfnl commented 5 years ago

Multi-line function calls need to have each argument on a new line. In a next iteration of this principle, it is expected that a sniff will be introduced to ban multi-line function call arguments.

With this mind, a number of function calls with multi-line parameters which are currently already causing errors to be thrown by PHPCS, have been fixed by moving multi-line function call arguments out of the function call and defining these as a variable before passing it to the function call.