Closing Brace

The closing brace of object-oriented constructs and functions must not be followed by any comment or statement on the same line.

Valid: Closing brace is the last content on the line.

class Foo { // Class content. }<em></em>

function bar() { // Function content. }<em></em>

Invalid: Comment or statement following the closing brace on the same line.

interface Foo2 { // Interface content. } <em>echo 'Hello!';</em>

function bar() { // Function content. } <em>//end bar()</em>