A Word about Coding Style
I strongly prefer and suggest the use of
PSR-2 coding standards¹
. As a community, it makes it
much easier to evaluate and contribute to one another’s code bases if the dialect is the same. I
also strongly suggest the use of DocBlocks and helpful comments on classes and methods.
However, for brevity, the code examples in this book make a few deviations from PSR-2 standards,
namely involving bracket placement, and don’t include many DocBlocks. If this is too jarring
for the PSR-2 and DocBlock fan, like myself, I humbly apologize.
¹
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
Do'stlaringiz bilan baham: |