diff --git a/.gitignore b/.gitignore index 0e36ec8..e34b188 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /vendor /composer.lock /.idea +/.php_cs.cache diff --git a/.php_cs b/.php_cs new file mode 100644 index 0000000..21763f7 --- /dev/null +++ b/.php_cs @@ -0,0 +1,9 @@ +setRiskyAllowed(true) + ->setRules([ + '@Symfony' => true, + '@Symfony:risky' => true, + ]) + ->setFinder(PhpCsFixer\Finder::create()->files()->in([__DIR__ . '/src', __DIR__ . '/tests'])->name('*.php')); diff --git a/composer.json b/composer.json index d347b6b..703d2b1 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,8 @@ "require-dev": { "phpunit/phpunit": "^7.5.15|^8.5", "php-coveralls/php-coveralls": "^2.2", - "vimeo/psalm": "^3.5" + "vimeo/psalm": "^3.5", + "friendsofphp/php-cs-fixer": "^2.6" }, "autoload": { "psr-4": {