Setting up PhpStorm
From MoodleDocs
PhpStorm is a commercial IDE, it is arguably the best IDE for PHP developers with features such as code completion, code inspection, phpunit support, Behat support, database editor, debugger, etc.
General settings
TODO
Code formatting
Setup coding style to use all rules from [Coding style] in "Project Settings / Code Style / PHP".
Moodle code checker
TODO