diff --git a/.styleci.yml b/.styleci.yml
index 247a09c5..ac8d6063 100644
--- a/.styleci.yml
+++ b/.styleci.yml
@@ -1 +1 @@
-preset: psr2
+preset: psr12
diff --git a/.travis.yml b/.travis.yml
index 48273c62..1ebac941 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,7 +21,7 @@ before_script:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
script:
- - vendor/bin/phpcs --standard=psr2 src/
+ - vendor/bin/phpcs --standard=psr12 src/ tests/
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 126fc7fb..3b93891d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -7,7 +7,7 @@ We accept contributions via Pull Requests on [Github](https://github.com/:vendor
## Pull Requests
-- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - Check the code style with ``$ composer check-style`` and fix it with ``$ composer fix-style``.
+- **[PSR-12 Coding Standard](https://www.php-fig.org/psr/psr-12/)** - Check the code style with ``$ composer check-style`` and fix it with ``$ composer fix-style``.
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
diff --git a/composer.json b/composer.json
index 76d9c223..dff3f3a1 100644
--- a/composer.json
+++ b/composer.json
@@ -19,9 +19,9 @@
"require": {
"php" : "~7.2"
},
- "require-dev": {
+ "require-dev": {
"phpunit/phpunit" : ">=8.0",
- "squizlabs/php_codesniffer": "^3.0"
+ "squizlabs/php_codesniffer": "^3.5"
},
"autoload": {
"psr-4": {
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 989f8408..afa27cc8 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -9,6 +9,6 @@
-
-
-
\ No newline at end of file
+
+
+