Hey app developers,
we spent a bit of effort into building a unified and shareable configuration for the php coding style in Nextcloud server. The good news is that you can also use it to automatically format the code of your app.
You can find the config and instructions on Github: https://github.com/nextcloud/coding-standard/#installation. As always let me know if you have any feedback or need help with applying this to your app
The dev docs for 19 will also have a note on this so it’s more discoverable https://docs.nextcloud.com/server/latest/developer_manual/app/coding-style.html#php.