2 ms·
Codesniffer also has a decent checker.[1] Actually, the only way I found to fix legacy code for good is to use the tokenizer and an open source parser to transf
by labrador 10y ago
Codesniffer also has a decent checker.[1] Actually, the only way I found to fix legacy code for good is to use the tokenizer and an open source parser to transform (with code you write) those pesky old bad habits. This one is ok. [2]
[1] https://github.com/squizlabs/PHP_CodeSniffer https://github.com/squizlabs/PHP_CodeSniffer
[2] https://github.com/nikic/PHP-Parser https://github.com/nikic/PHP-Parser