| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/a/w/e/awebpaca/piwik/misc/phpstorm-codestyles/ |
Upload File : |
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). Steps: * Use latest Phpstorm * Copy this Piwik_codestyle.xml file in your `~/.WebIde80/config/codestyles/` * If you use Windows or Mac see which path to copy at: http://intellij-support.jetbrains.com/entries/23358108 * To automatically link to the file in Piwik: `$ ln -s ~/dev/piwik-master/misc/phpstorm-codestyles/Piwik_codestyle.xml ~/.WebIde80/config/codestyles/Piwik_codestyle.xml` * Restart PhpStorm * 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! Reference: [Piwik Coding standards](http://developer.piwik.org/guides/contributing-to-piwik-core#piwik-core-code-standards)