Le 2012-05-02 09:10, Alex Marin a écrit :
On Wed, May 2, 2012 at 12:17 PM, Michal Čihař michal@cihar.com wrote:
Sure there is :-). Once you install PHP CodeSniffer you can run it with our customized standard in phpMyAdmin's directory:
phpcs --standard=PMAStandard file.php
If you also want to use the NetBeans plugin as Madhura suggested, once you have copied the PMAStandard folder inside your installation dir (.../CodeSniffer/Standards/), you simply go to Tools->Options-> ->PHP->Code Sniffer->Standard and select PMAStandard from the list. If you had NetBeans open while copying PMAStandard, then you have to restart the IDE in order for it to display the new option in the list.
All the best, Alex
Can someone create a CodeSniffer page on http://wiki.phpmyadmin.net ? Don't forget to put this at the bottom:
[[Category:Devel]]