diff --git a/.twig_cs.dist.php b/.twig_cs.dist.php new file mode 100644 index 0000000..6041bcf --- /dev/null +++ b/.twig_cs.dist.php @@ -0,0 +1,17 @@ +in(__DIR__ . '/templates') + ->name('*.html.twig') + ->ignoreVCSIgnored(true); + +return Config::create() + ->setFinder($finder) + ->setRuleSet(GlpiTwigRuleset::class) +; diff --git a/templates/configurable_item.html.twig b/templates/configurable_item.html.twig index d08b42c..49170f0 100644 --- a/templates/configurable_item.html.twig +++ b/templates/configurable_item.html.twig @@ -33,7 +33,7 @@ unit tests so it need to call the same "source" method #} {% set slug = call('Toolbox::Slugify', [ get_class(item) -] ) %} +]) %}