http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html
I assume this was old, but the v3
branch still uses tabs also. Does anyone know why the newer version doesn't ahere to something like PSR-2?
PSR-2 is a style guide it is not a standard - and even if it were, it's voluntary.
Leaving aside any tab-v-spaces war, changing whitespace project wide for CakePHP has the following advantages:
It brings with it the following disadvantages:
The last two points are significant - CakePHP has already gone though various automated formatting-related changes, and each time it has lead to time spent/lost coping with merge conflicts whilst building release, or attempting to backport a fix from one version to another.
These are some of the reasons why following this particular rule of PSR-2 isn't likely to occur any time soon.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With