From 6d32396e42168414365411d99e3f899d09f4962f Mon Sep 17 00:00:00 2001 From: Bjorn Van Acker Date: Mon, 6 May 2024 14:12:33 +0200 Subject: [PATCH] Require vincentlanglet/twig-cs-fixer --- .twig-cs-fixer.dist.php | 13 +++++++++++++ composer.json | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .twig-cs-fixer.dist.php 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,