I'm looking for the right way (if that's right, let me know) to write namespaces in PHP classes that follow the PSR-1 standard. I looked around, but saw nothing. The right way to use
Namespace Foo\Bar;
or correctly use curly braces such as
Namespace Foo\Bar
{
}
If both are correct, is there a specific reason to use one over the other? I understand that this part can be based on opinions.
ehime source
share