Skip to content

Commit a55a67d

Browse files
committed
[CS] Fix templates via twig-cs-fixer
1 parent bfc6d08 commit a55a67d

38 files changed

+43
-51
lines changed

src/Autocomplete/templates/autocomplete_form_theme.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{# EasyAdminAutocomplete form type #}
22
{% block ux_entity_autocomplete_widget %}
33
{% if form.autocomplete is defined %}
4-
{{ form_widget(form.autocomplete, { attr: form.autocomplete.vars.attr|merge({ required: required }) }) }}
4+
{{ form_widget(form.autocomplete, {attr: form.autocomplete.vars.attr|merge({required: required})}) }}
55
{% else %}
66
{{ form_widget(form) }}
77
{% endif %}
@@ -12,4 +12,4 @@
1212
{% set id = form.autocomplete.vars.id %}
1313
{% endif %}
1414
{{ block('form_label') }}
15-
{% endblock ux_entity_autocomplete_label %}
15+
{% endblock ux_entity_autocomplete_label %}

src/Dropzone/templates/form_theme.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% block dropzone_widget -%}
22
{%- set dataController = (attr['data-controller']|default('') ~ ' symfony--ux-dropzone--dropzone')|trim -%}
3-
{%- set attr = attr|merge({ 'data-controller': '', class: (attr.class|default('') ~ ' dropzone-input')|trim}) -%}
3+
{%- set attr = attr|merge({'data-controller': '', class: (attr.class|default('') ~ ' dropzone-input')|trim}) -%}
44

55
<div class="dropzone-container" data-controller="{{ dataController }}">
66
<input type="file" {{ block('widget_attributes') }} data-symfony--ux-dropzone--dropzone-target="input" />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
{{ component_url('component1', { prop1: null, prop2: date }) }}
1+
{{ component_url('component1', {prop1: null, prop2: date}) }}
22
{{ component_url('alternate_route') }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<div{{ attributes }}>
22
Count: {{ this.count }}
3-
</div>
3+
</div>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ component('todo_list', {
22
items: [
3-
{ text: 'milk'},
4-
{ text: 'cheese'},
5-
{ text: 'milk'},
3+
{text: 'milk'},
4+
{text: 'cheese'},
5+
{text: 'milk'},
66
]
77
}) }}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{ component('todo_list', {
22
items: [
3-
{ text: 'milk'},
4-
{ text: 'cheese'},
5-
{ text: 'milk'},
3+
{text: 'milk'},
4+
{text: 'cheese'},
5+
{text: 'milk'},
66
],
77
includeDataLiveId: true
88
}) }}

src/TwigComponent/templates/Collector/twig_component.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
{% endfor %}
140140
{% endset %}
141141

142-
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
142+
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url}) }}
143143

144144
{% endif %}
145145
{% endblock %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<twig:Button label='Click me'/>
1+
<twig:Button label='Click me'/>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<twig:Form:SubmitButton label='Submit'/>
1+
<twig:Form:SubmitButton label='Submit'/>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<twig:UserCard :user='user' class='foo'/>
1+
<twig:UserCard :user='user' class='foo'/>

0 commit comments

Comments
 (0)