From b0fef2196ea06f767e248dd9854870dd1a6abfef Mon Sep 17 00:00:00 2001 From: Ken Date: Mon, 16 Jul 2012 00:09:01 +0100 Subject: [PATCH] reword phpcs text slightly, also suggest fabpot's php-cs-fixer --- _posts/02-01-01-Code-Style-Guide.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_posts/02-01-01-Code-Style-Guide.md b/_posts/02-01-01-Code-Style-Guide.md index 5ddd166..95686f8 100644 --- a/_posts/02-01-01-Code-Style-Guide.md +++ b/_posts/02-01-01-Code-Style-Guide.md @@ -10,10 +10,12 @@ Ideally you should write PHP code that adheres to one or more of these standards * [Read about PSR-1][psr1] * [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. +If you wish, you could install and use a PHP_CodeSniffer[phpcs] Coding Standard from https://github.com/klaussilveira/phpcs-psr to check code against these recommendations. +You might find Fabien Potencier's [PHP Coding Standards Fixer][phpcsfixer] takes care of most of these issues, saving you from fixing each problem by hand. [fig]: http://www.php-fig.org/ [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 [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/ +[phpcsfixer]: http://cs.sensiolabs.org/