Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .twig_cs.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

use FriendsOfTwig\Twigcs\Finder\TemplateFinder;
use FriendsOfTwig\Twigcs\Config\Config;
use Glpi\Tools\GlpiTwigRuleset;

$finder = TemplateFinder::create()
->in(__DIR__ . '/templates')
->name('*.html.twig')
->ignoreVCSIgnored(true);

return Config::create()
->setFinder($finder)
->setRuleSet(GlpiTwigRuleset::class)
;
2 changes: 1 addition & 1 deletion templates/configurable_item.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
unit tests so it need to call the same "source" method #}
{% set slug = call('Toolbox::Slugify', [
get_class(item)
] ) %}
]) %}

<div
class="col-12 col-lg-6 col-xxl-4 mb-2"
Expand Down
4 changes: 2 additions & 2 deletions templates/editor/question_types/ldap_select_config.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
'display_emptychoice': true,
'full_width' : true,
'disabled' : true,
'init' : question is not null ? true: false,
'init' : question is not null ? true : false,
}
) }}
</div>
Expand Down Expand Up @@ -89,7 +89,7 @@
__('Attribute'), {
'full_width' : true,
'is_horizontal': false,
'init' : question is not null ? true: false,
'init' : question is not null ? true : false,
}
) }}
</div>