Skip to content

Commit

Permalink
Merge pull request #110 from sumocoders/30-replace-twigcs-by-twig-cs-…
Browse files Browse the repository at this point in the history
…fixer

Require vincentlanglet/twig-cs-fixer
  • Loading branch information
Bjorn Van Acker authored May 7, 2024
2 parents 8b7a4d2 + 6d32396 commit 36a8c0a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .twig-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

$ruleset = new TwigCsFixer\Ruleset\Ruleset();

// You can start from a default standard
$ruleset->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;
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
},
"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",
"squizlabs/php_codesniffer": "^3.4",
"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,
Expand Down

0 comments on commit 36a8c0a

Please sign in to comment.