diff --git a/.gitattributes b/.gitattributes index b640645..6efd058 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,3 +4,4 @@ .travis.yml export-ignore build.xml export-ignore phpunit.xml.dist export-ignore +phpcs.xml.dist export-ignore diff --git a/.gitignore b/.gitignore index 50f8d9e..a154d47 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ build vendor composer.lock phpunit.xml +.phpcs.xml +phpcs.xml diff --git a/build.xml b/build.xml index 9d95c2e..4f30c31 100644 --- a/build.xml +++ b/build.xml @@ -52,12 +52,10 @@ - - - + - + diff --git a/composer.json b/composer.json index f65682e..83b9785 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "phpunit/phpunit": "^4.8.36 || ^5.0 || ^6.0 || ^7.0", "php-parallel-lint/php-parallel-lint": "^1.0", "php-parallel-lint/php-var-dump-check": "0.*", - "squizlabs/php_codesniffer": "1.*", + "squizlabs/php_codesniffer": "3.*", "php-parallel-lint/php-code-style": "1.0" }, "replace": { diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000..eec5d27 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,18 @@ + + + A coding standard for Jakub Onderka's projects. + + ./src/ + + + + + + + + + + + + +