Skip to content

Commit 014cec6

Browse files
committed
Revert "Feat(CI): TwigCS (#946)"
This reverts commit 3bf9a73.
1 parent 410068c commit 014cec6

7 files changed

+21
-95
lines changed

.twig_cs.dist.php

Lines changed: 0 additions & 15 deletions
This file was deleted.

composer.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
},
66
"require-dev": {
77
"friendsofphp/php-cs-fixer": "^3.75",
8-
"friendsoftwig/twigcs": "^6.1",
98
"glpi-project/tools": "^0.7.4",
109
"php-parallel-lint/php-parallel-lint": "^1.4",
1110
"phpstan/extension-installer": "^1.4",
@@ -21,10 +20,5 @@
2120
"allow-plugins": {
2221
"phpstan/extension-installer": true
2322
}
24-
},
25-
"autoload-dev": {
26-
"psr-4": {
27-
"Glpi\\Tools\\": "../../tools/src/"
28-
}
2923
}
3024
}

composer.lock

Lines changed: 9 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/container_display_conditions.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<div id="container{{ rand }}" class="asset">
3333
<div class="flash-messages">
3434
<div class="alert alert-info">
35-
{{ __('The engine is used for hide block when main object meets condition') }}
35+
{{ __('The engine is used for hide block when main object meets condition')}}
3636
</div>
3737
</div>
3838
<div class="d-flex align-items-start mb-3">

templates/fields.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
{% set rand = random() %}
4949

5050
{% set field_options = field_options|merge({
51-
'readonly': readonly or not canedit,
52-
'required': field['mandatory'],
51+
'readonly': readonly or not canedit,
52+
'required': field['mandatory'],
5353
'full_width': already_wrapped
5454
}) %}
5555

@@ -161,11 +161,11 @@
161161
]) %}
162162

163163
{# fake label for DOM disposition #}
164-
<label class="col-form-label col-xxl-4 text-xxl-end" for="dropdown_items_id_testfield{{ rand }}">
164+
<label class="col-form-label col-xxl-4 text-xxl-end" for="dropdown_items_id_testfield{{rand}}">
165165
</label>
166166

167167
<div class="col-xxl-8 field-container">
168-
<span id='results_items_id{{ rand }}' class='col-lg-14'>
168+
<span id='results_items_id{{rand}}' class='col-lg-14'>
169169
{% if value.itemtype != '' %}
170170
{{ macros.dropdownField(value.itemtype, items_id_prefix ~ name, value.items_id, ' ', field_options|merge({
171171
'entity': value.itemtype == 'User' ? -1 : item.getEntityID(),

templates/forms/container_display_condition.html.twig

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,30 @@
3939
{{ fields.dropdownArrayField('itemtype', container_display_condition.fields['itemtype']|default(null), container_itemtypes, __('Item type'), {'rand': rand, 'display_emptychoice': true}) }}
4040
{% do call('Ajax::updateItemOnSelectEvent',
4141
[
42-
'dropdown_itemtype' ~ rand,
42+
'dropdown_itemtype'~ rand,
4343
'results_fields',
4444
get_plugin_web_dir('fields') ~ '/ajax/container_display_condition.php',
4545
{
4646
'itemtype': '__VALUE__',
4747
'action' : 'get_itemtype_so',
4848
}
49-
]) %}
49+
])
50+
%}
5051
<div id='results_fields' class='form-field row col-12 col-sm-6 mb-2'>
5152
{% if not container_display_condition.isNewItem() %}
5253
{{ fields.dropdownArrayField('search_option', container_display_condition.fields['search_option']|default(null), search_options, '', {'no_label': true, 'rand': rand, 'display_emptychoice': false}) }}
5354
{% do call('Ajax::updateItemOnSelectEvent',
5455
[
55-
'dropdown_search_option' ~ rand,
56+
'dropdown_search_option'~ rand,
5657
'results_condition',
5758
get_plugin_web_dir('fields') ~ '/ajax/container_display_condition.php',
5859
{
5960
'search_option_id' : '__VALUE__',
6061
'itemtype' : container_display_condition.fields['itemtype'],
6162
'action' : 'get_condition_switch_so'
6263
}
63-
]) %}
64+
])
65+
%}
6466
{% endif %}
6567
</div>
6668

templates/status_overrides.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<span class='ms-2'>
3737
{{ __("Here you can redefine the following options :") }}
3838
<ul>
39-
<li><i>{{ __("Mandatory") }} </i></li>
39+
<li><i> {{__("Mandatory") }} </i></li>
4040
<li><i>{{ __("Read-only") }} </i></li>
4141
</ul>
4242
{{ __("for each field, depending on the states of the element attached to the container.") }}

0 commit comments

Comments
 (0)