joomla/coding-standards

PSR

chivitli opened this issue · 3 comments

Is there a plan to use PSR-2+ as Joomla coding standard? Is any PSR standard accepted for use within Joomla? It came accross my mind when I realized opening braces for control structures must go on a newline for Joomla, and knowing that Andrew Eddie was participating in php-fig for Joomla, I was wondering what is the plan with this, if any?

The PSR-2 coding standard isn't used by Joomla. Our's were designed heavily influenced from those of PEAR before the PHP-FIG came around, and it's been the consensus that realigning our coding standard again would make for a lot of unnecessary work.

With regards to other PSR's, the Framework is I think 100% in compliance with the PSR-1 standard and implements the PSR-3 Logging interface and PSR-4 autoloader.

Ok, thanks for the reply, at least it's clear now :)

@mbabker can this be closed?