Open eduardoarandah opened 5 years ago
If you have this in a repository at /path/to/repo
, you should be able to run it with something like:
/usr/bin/php \
/path/to/repo/fmt.phar \
--enable_auto_align \
--smart_linebreak_after_curly \
--passes=ReindentSwitchBlocks,SplitCurlyCloseAndTokens \
-o=<output> \
<file>
with, of course, your own options.
Is it possible to use phpfmt in command line?
I know about phpcs and phpcbf but they don’t align arrows