I was sick and tired of all the nitpick comments on my PR's, now that StyleCI has joined the regiments on that side, I decided to set up a style setting for Flarum in PHP Storm.
You can find it as gist: https://gist.github.com/Luceos/063c15027f2433f87063
Just save the file and use it from your settings > Editor > Code Style > PHP > manage > import
You can now more safely use the Code > Reformat Code option to match the choosen format of Flarum.
Please note this does not cover the javascript formatting.