From 96112e94bd846790769fd4df3f62e35a50f2db56 Mon Sep 17 00:00:00 2001 From: Nikhil Ben Kuruvilla Date: Mon, 18 Feb 2019 15:56:32 +0530 Subject: [PATCH] Fixed php-cs-fixer cmd for applying PSR2 rule --- _posts/02-01-01-Code-Style-Guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/02-01-01-Code-Style-Guide.md b/_posts/02-01-01-Code-Style-Guide.md index f2c672c..3d05b61 100644 --- a/_posts/02-01-01-Code-Style-Guide.md +++ b/_posts/02-01-01-Code-Style-Guide.md @@ -50,7 +50,7 @@ If you have PHP_CodeSniffer, then you can fix the code layout problems reported Another option is to use the [PHP Coding Standards Fixer][phpcsfixer]. It will show which kind of errors the code structure had before it fixed them. - php-cs-fixer fix -v --level=psr2 file.php + php-cs-fixer fix -v --rules=@PSR2 file.php English is preferred for all symbol names and code infrastructure. Comments may be written in any language easily readable by all current and future parties who may be working on the codebase.