From e3bb5afd0c02e43d200da756111d5adc5bfa3f77 Mon Sep 17 00:00:00 2001 From: Mike Whitby Date: Thu, 24 May 2018 16:26:40 +0100 Subject: [PATCH 1/2] Fix readme repository addition --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 645ac3c..3588ffa 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ repository forms an effort to come up with more advanced rulesets than there cur ### Usage To install this package, go to your Magento 2 root and use the following: - composer config repositories:extdn-phpcs vcs git@github.com:extdn/extdn-phpcs.git + composer config repositories.extdn-phpcs vcs git@github.com:extdn/extdn-phpcs.git composer require extdn/phpcs:dev-master Once installed, you can run PHPCS from the command-line to analyse your code `XYZ`: From 711af3fa64c671cf416b7a7d5120b448b9ded857 Mon Sep 17 00:00:00 2001 From: Mike Whitby Date: Thu, 24 May 2018 16:33:24 +0100 Subject: [PATCH 2/2] Add newlines in README.md, because I'm pedantic --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3588ffa..c6f296b 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ templates, not using `setTemplate` in Blocks and using namespaced classes for Vi repository forms an effort to come up with more advanced rulesets than there currently are. ### Usage + To install this package, go to your Magento 2 root and use the following: composer config repositories.extdn-phpcs vcs git@github.com:extdn/extdn-phpcs.git @@ -24,6 +25,7 @@ Once installed, you can run PHPCS from the command-line to analyse your code `XY vendor/bin/phpcs --standard=./vendor/extdn/phpcs/Extdn vendor/XYZ ### Contributions + Any contributions are welcome. Add a new issue under **Issues** to address new rulesets that are needed or report other issues. As an example, you can use the `SetTemplateInBlockSniff` within the folder `Extdn/Sniffs/Blocks`. It can be tested upon a sample file under `Extdn/Samples/Blocks`: