diff --git a/.gitignore b/.gitignore index 4a2fca76..cb342a9b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ tests/DoctrineTest/doctrine_tests/* /tests/tmp /tests/foo.sq3 /vendor/ +/.phpcs-cache diff --git a/composer.json b/composer.json index befc2430..3084ba2e 100644 --- a/composer.json +++ b/composer.json @@ -39,5 +39,13 @@ "branch-alias": { "dev-master": "1.4-dev" } + }, + "require-dev": { + "doctrine/coding-standard": "^12.0" + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } } diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 00000000..aa5a0df9 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + lib + tests + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +