From 4fea688131154e79663285695a7a78e289f0575e Mon Sep 17 00:00:00 2001 From: James Mehorter Date: Fri, 15 Mar 2019 15:30:06 -0400 Subject: [PATCH 1/2] Add support for PHPCodeSniffer Composer Installer This "type" property is required for the PHPCodeSniffer Composer Installer package to automatically install the ruleset into phpcs. https://github.com/Dealerdirect/phpcodesniffer-composer-installer#developing-coding-standards https://github.com/Dealerdirect/phpcodesniffer-composer-installer/wiki/Change-%60composer.json%60-%22type%22-to-%60phpcodesniffer-standard%60 --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 696c8df..dc31714 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,7 @@ "email": "emiel.molenaar@gmail.com" } ], + "type": "phpcodesniffer-standard", "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", "sirbrillig/phpcs-import-detection": "^1.1", From 151b5364c0e233ddc52cd32d77d5cd879d68d282 Mon Sep 17 00:00:00 2001 From: James Mehorter Date: Fri, 15 Mar 2019 15:32:28 -0400 Subject: [PATCH 2/2] Use the existing 'type' property There is no need to add another :) --- composer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index dc31714..5bb984b 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "emielmolenaar/phpcs-laravel", - "type": "library", + "type": "phpcodesniffer-standard", "description": "PHPCS libraries and configuration for Laravel", "keywords": [ "phpcs", @@ -14,7 +14,6 @@ "email": "emiel.molenaar@gmail.com" } ], - "type": "phpcodesniffer-standard", "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", "sirbrillig/phpcs-import-detection": "^1.1",