Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • A more complete quote: "Visibility MUST be declared on all properties and methods; abstract and final MUST be declared before the visibility; static MUST be declared after the visibility." source Commented Nov 6, 2014 at 13:48
  • 3
    i mean don't they also advocate putting { on new lines all unto themselves? gross..
    – Eva
    Commented Dec 11, 2014 at 11:21
  • 3
    @Eva Only for method and class declarations. For loops and conditionals, etc, they recommend placing them at the end of the line after a space: php-fig.org/psr/psr-2 I personally find this much easier to read than placing all braces at the end of the line. Commented Sep 29, 2015 at 15:00