From 33b30037ec5bca681a7c8120f90c7a792ed541d3 Mon Sep 17 00:00:00 2001 From: Karoly Gossler Date: Sat, 17 Feb 2024 08:12:43 +0100 Subject: [PATCH] added php cs configuration --- .gitignore | 1 + composer.json | 8 ++ phpcs.xml.dist | 256 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 265 insertions(+) create mode 100644 phpcs.xml.dist diff --git a/.gitignore b/.gitignore index 4a2fca764..cb342a9bb 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 befc24307..3084ba2e4 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 000000000..aa5a0df90 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + lib + tests + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +