diff --git a/composer.json b/composer.json index e19bd97..5c0b436 100644 --- a/composer.json +++ b/composer.json @@ -36,5 +36,12 @@ }, "config": { "sort-packages": true + }, + "require-dev": { + "squizlabs/php_codesniffer": "^3.7" + }, + "scripts": { + "phpcs": "phpcs", + "phpcbf": "phpcbf" } } diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..13d8a3b --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,15 @@ + + + PHP_CodeSniffer configuration for the ToArrayInterface package + + + + + + src + + + + + + diff --git a/src/ToArrayInterface.php b/src/ToArrayInterface.php index d49aa48..ae69005 100644 --- a/src/ToArrayInterface.php +++ b/src/ToArrayInterface.php @@ -1,4 +1,5 @@