|Teknikode 6c3fa50c75 Added stats to repo, and adding tracking to downloads||6 years ago|
|Piwik_codestyle.xml||6 years ago|
|README.md||6 years ago|
Phpstorm has an awesome feature called “Reformat code” which reformats all PHP code to follow a particular selected coding style.
Piwik uses PSR coding standard for php source code. We use a slightly customized PSR style (because the default PSR style in Phpstorm results in some unwanted changes).
Copy this Piwik_codestyle.xml file in your
$ ln -s ~/dev/piwik-master/misc/phpstorm-codestyles/Piwik_codestyle.xml ~/.WebIde80/config/codestyles/Piwik_codestyle.xml
Select this coding in Settings > Code style.
Phpstorm can also be configured to apply the style automatically before commit.
You are now writing code that respects Piwik coding standards. Enjoy!