Skip to content

Commit 10e2015

Browse files
committed
Updated twig-cs-fixer and cleaned up Twig templates
1 parent 17420f7 commit 10e2015

File tree

43 files changed

+75
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+75
-78
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"phpspec/prophecy-phpunit": "^2.0",
7474
"phpstan/extension-installer": "^1.3",
7575
"phpstan/phpstan-deprecation-rules": "^1.1",
76-
"vincentlanglet/twig-cs-fixer": "^2.9"
76+
"vincentlanglet/twig-cs-fixer": "^3.10"
7777
},
7878
"conflict": {
7979
"drupal/drupal": "*"

composer.lock

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

web/profiles/custom/os2loop/modules/os2loop_lists/templates/os2loop-lists-expert.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="col">
2525
<div class="small">{{ node.type.entity.label }}</div>
2626
<div class="d-flex">
27-
<h3 class="h6"><a href="{{ url('entity.node.canonical', { 'node': node.id() }) }}">{{ node.title() }}</a></h3>
27+
<h3 class="h6"><a href="{{ url('entity.node.canonical', {node: node.id()}) }}">{{ node.title() }}</a></h3>
2828
</div>
2929
<div class="d-flex">
3030
{% if node.bundle is same as 'os2loop_post' %}

web/profiles/custom/os2loop/modules/os2loop_lists/templates/os2loop-lists-profession.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="col">
2525
<div class="small">{{ node.type.entity.label }}</div>
2626
<div class="d-flex">
27-
<h3 class="h6"><a href="{{ url('entity.node.canonical', { 'node': node.id() }) }}">{{ node.title() }}</a></h3>
27+
<h3 class="h6"><a href="{{ url('entity.node.canonical', {node: node.id()}) }}">{{ node.title() }}</a></h3>
2828
</div>
2929
<div class="d-flex">
3030
{% if node.bundle is same as 'os2loop_post' %}

web/profiles/custom/os2loop/themes/os2loop_theme/templates/block/block--facet-block--os2loop-search-db-content-type.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929
#}
3030
{% set classes = [
31-
'row'
31+
'row',
3232
] %}
3333

3434
<div{{ attributes.addClass(classes) }}>

web/profiles/custom/os2loop/themes/os2loop_theme/templates/content-entities/comment--os2loop-post-comments.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
'js-comment',
7878
'os2loop-comment',
7979
'entity',
80-
is_top_comment ? 'top-comment'
80+
is_top_comment ? 'top-comment',
8181
] %}
8282

8383
<article{{ attributes.addClass(classes) }}>

web/profiles/custom/os2loop/themes/os2loop_theme/templates/content-entities/comment--os2loop-question-answers.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
'js-comment',
7878
'os2loop-comment',
7979
'entity',
80-
is_top_comment ? 'top-comment'
80+
is_top_comment ? 'top-comment',
8181
] %}
8282

8383
<article{{ attributes.addClass(classes) }}>

web/profiles/custom/os2loop/themes/os2loop_theme/templates/content-entities/flag--os2loop-subscription-term.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
'btn',
3030
'flag-' ~ flag.id()|clean_class,
3131
'js-flag-' ~ flag.id()|clean_class ~ '-' ~ flaggable.id(),
32-
action_class
32+
action_class,
3333
]
3434
%}
3535

web/profiles/custom/os2loop/themes/os2loop_theme/templates/content-entities/flag--os2loop-upvote-correct-answer.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{% set classes = [
2424
'flag-' ~ flag.id()|clean_class,
2525
'js-flag-' ~ flag.id()|clean_class ~ '-' ~ flaggable.id(),
26-
action_class
26+
action_class,
2727
]
2828
%}
2929

web/profiles/custom/os2loop/themes/os2loop_theme/templates/content-entities/paragraph--os2loop-documents-highlighted-co.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ paragraph.parent_id.value is an empty array when previewing un-saved content.
5252
'paragraph--type--' ~ paragraph.bundle|clean_class,
5353
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
5454
not paragraph.isPublished() ? 'paragraph--unpublished',
55-
highlight_color
55+
highlight_color,
5656
]
5757
%}
5858

0 commit comments

Comments
 (0)