According to PSR2, the closing brace of classes should be placed on the next line directly after the body.
Below you find some examples:
// Incorrect placement according to PSR2classMyClass{publicfunctionfoo(){}// This blank line is not allowed.}// CorrectclassMyClass{publicfunctionfoo(){}// No blank lines after this line.}
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.