suggest klaussilveira's phpcs sniff for checking code against the PSR-[1,2] recommendations

This commit is contained in:
Ken
2012-07-14 01:37:13 +01:00
parent 85c73c72f7
commit b4a1fc832f

View File

@@ -10,7 +10,10 @@ Ideally you should write PHP code that adheres to one or more of these standards
* [Read about PSR-1][psr1] * [Read about PSR-1][psr1]
* [Read about PSR-2][psr2] * [Read about PSR-2][psr2]
If you wish, you could install and use a PHP_Codesniffer[phpcs] sniff from https://github.com/klaussilveira/phpcs-psr to check code against these recommendations.
[fig]: http://www.php-fig.org/ [fig]: http://www.php-fig.org/
[psr0]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md [psr0]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
[psr1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md [psr1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
[psr2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md [psr2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[phpcs]: http://pear.php.net/package/PHP_CodeSniffer/