16 lines
458 B
PHP
16 lines
458 B
PHP
<?php
|
|
|
|
$ruleset = new TwigCsFixer\Ruleset\Ruleset();
|
|
|
|
// You can start from a default standard
|
|
$ruleset->addStandard(new TwigCsFixer\Standard\TwigCsFixer());
|
|
|
|
// And then add/remove/override some rules
|
|
$ruleset->removeRule(TwigCsFixer\Rules\Function\IncludeFunctionRule::class);
|
|
$ruleset->removeRule(TwigCsFixer\Rules\Punctuation\TrailingCommaMultiLineRule::class);
|
|
|
|
$config = new TwigCsFixer\Config\Config();
|
|
$config->setRuleset($ruleset);
|
|
|
|
return $config;
|