Refactoring and Standards Tools
摘要
As coders, ideally, we work to automate drudgery (the qualification is necessary because we’ve all encountered systems that have clearly been written to make everyone’s lives worse rather than better). In doing so, though, we must often endure our own parade of tedious tasks. While standards make for better, more interoperable code, for example, the need for compliance adds yet another layer of effort to our development routines. And that’s before we hunt for misspelled variables, loose method signatures, and all manner of other bug magnets. This chapter will cover the PHP Standards Recommendation, focussing in particular on the PSR standards for coding style and autoloading.