Skip to content

Further Style Guide Considerations

Phil Sturgeon edited this page Sep 16, 2013 · 14 revisions

Since the PSR-1 and 2 were created there have been a few edge-cases that were missed out. These are style guide questions that have fallen through the cracks and were not addressed in any of the existing PSR's.

It's not clear if they will go into another PSR, be added as amendments (probably not) or listed as Errata. Discussions are happening about how amendments will be made (if at all) so this is a list of issues or threads that have raised these questions for consideration in the future.

PSR-2

  • Clarification on multi-line function calls (#61, ML and writeup)
  • Can multi-line function calls contain empty lines if they are part of an argument, specifically a chained list of function calls (ML, Vote)
  • Should "if ( ! " be an exception to the rule (ML)
  • "All PHP files MUST end with a single blank line" actually means a single newline character (clarified by @pmjones, but not sure where)
  • Where do opening braces for functions go? (not methods, not closures) ML
Clone this wiki locally