I am writing a PHP command line app which generates some PHP code and wants to pass it thought the code style fixer before storing it to a file.
Is it possible to use php-cs-fixer as a library and call it from the code ?
If no, is there any other solution to ensure that the generated code respects the PSR-2 standard ?
Thanks,
magento/magento2wants it to happen, see github.com/magento/magento2/pull/10770, but I really wouldn't recommend it. If you do, however, take a look at the comment in this PR by Dariusz Ruminski, the maintainer offriendsofphp/php-cs-fixer: github.com/magento/magento2/pull/10770#issuecomment-327829883