标签为 "PHP_CodeSniffer" 的存档

php代码规范检查 PHP_CodeSniffer

http://pear.php.net/package/PHP_CodeSniffer/

使用pear安装,然后使用phpcs命令检查.

sudo pear install PHP_CodeSniffer
phpcs application/controllers/Index.php

默认的规则比较严格,doc是必须的,doc的空格个数,格式都有严格要求。。

Best checked for with a tool: PHP Code Sniffer

Best checked for with a tool: PHP Code Sniffer