Olivier Massot 1 år sedan
förälder
incheckning
d6dcb1df66
3 ändrade filer med 19 tillägg och 0 borttagningar
  1. 5 0
      .gitignore
  2. 13 0
      .php-cs-fixer.dist.php
  3. 1 0
      composer.json

+ 5 - 0
.gitignore

@@ -55,3 +55,8 @@ phpstan.neon
 ###> liip/imagine-bundle ###
 /public/media/cache/
 ###< liip/imagine-bundle ###
+
+###> friendsofphp/php-cs-fixer ###
+/.php-cs-fixer.php
+/.php-cs-fixer.cache
+###< friendsofphp/php-cs-fixer ###

+ 13 - 0
.php-cs-fixer.dist.php

@@ -0,0 +1,13 @@
+<?php
+
+$finder = (new PhpCsFixer\Finder())
+    ->in(__DIR__)
+    ->exclude('var')
+;
+
+return (new PhpCsFixer\Config())
+    ->setRules([
+        '@Symfony' => true,
+    ])
+    ->setFinder($finder)
+;

+ 1 - 0
composer.json

@@ -76,6 +76,7 @@
     "cyclonedx/cyclonedx-php-composer": "^3.4",
     "dg/bypass-finals": "^1.4",
     "doctrine/doctrine-fixtures-bundle": "^3.4",
+    "friendsofphp/php-cs-fixer": "^3.49",
     "hautelook/alice-bundle": "^2.11",
     "justinrainbow/json-schema": "^5.2",
     "phpstan/extension-installer": "^1.2",