Am 13.06.2012 10:04, schrieb Ivan Habunek:
The PSR coding standards [1] have recently been approved by the PHP
Framework Interop Group  (ex PHP Standards Working Group) [2].

I have read the standards, they seem well constructed, and they make
sense to me.

PSR-0 - Deals with namespaces, so it does not affect the project at this point.
PSR-1 - Sets basic coding standards. log4php code is already compliant
with this standard.
PSR-2 - Extends PSR-1 with much more detailed rules. log4php is
currently not compliant.

There are not that many changes we need to make to be compliant with
PSR-2. The larger ones would be:
- indent using 4 spaces (currently tabs)
- opening braces for classes and methods go on the next line (currently inline)
- lines must end with unix LF (currently undefined - mixed LF and CR/LF)
I think a decent coding standard would be good for this project, and
make any contributions easier. Therefore I propose that we adopt these
standards, starting with the next release (2.3.0). I also volunteer to
do the work.

I think we should use a coding-standard what concrete standard doesn't matter.

But an adaption of the PSR-2 with inline braces would be nice. ;)

What say you?

Regards,
Ivan

[1] https://github.com/php-fig/fig-standards/tree/master/accepted
[2] https://groups.google.com/forum/#!forum/php-standards

Sorry for the late answer.

Regards,

Florian

Reply via email to