diff --git a/.twig-cs-fixer.dist.php b/.twig-cs-fixer.dist.php new file mode 100644 index 0000000..0e56f5c --- /dev/null +++ b/.twig-cs-fixer.dist.php @@ -0,0 +1,13 @@ +addStandard(new TwigCsFixer\Standard\TwigCsFixer()); +$ruleset->addStandard(new TwigCsFixer\Standard\Symfony()); +$ruleset->addStandard(new TwigCsFixer\Standard\Twig()); + +$config = new TwigCsFixer\Config\Config(); +$config->setRuleset($ruleset); + +return $config; diff --git a/composer.json b/composer.json index e2f73c1..d0db2d8 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,6 @@ }, "flex-require-dev": { "doctrine/doctrine-fixtures-bundle": "^3.4", - "friendsoftwig/twigcs": "^6.0", "micheh/phpcs-gitlab": "^1.1", "phpstan/phpstan-symfony": "^1.0", "phpstan/phpstan-doctrine": "^1.0", @@ -42,7 +41,8 @@ "symfony/debug-pack": "*", "symfony/phpunit-bridge": "^7.0", "symfony/stopwatch": "^7.0", - "tijsverkoyen/deployer-sumo": "^3.0" + "tijsverkoyen/deployer-sumo": "^3.0", + "vincentlanglet/twig-cs-fixer": "*" }, "config": { "optimize-autoloader": true,