Вопрос

I would like to format the php files that I have in a directory, so that the code looks tidy and readable. I know how to do this via eclipse php, but is their a way to do several files in one go, via code?

Это было полезно?

Решение

Fabien Potencier (of Symfony fame) has written a small utility that can modify code to comply with PHPCodeSniffer defined standards for PSR-n - PHP-CS-Fixer - although it isn't perfect

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top