Skip to content

Commit fba478e

Browse files
committed
Apply Twig CS Fixer
1 parent abec2e5 commit fba478e

21 files changed

+29
-33
lines changed

ux.symfony.com/templates/changelog.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% set meta = {
44
title: 'Changelog',
5-
title_suffix: " - Symfony UX",
5+
title_suffix: ' - Symfony UX',
66
description: 'Symfony UX changelog - New features, bug fixes, performances and security improvements about Symfony Live Components, Twig Components, Autocomplete, Icons...',
77
canonical: url('app_changelog'),
88
} %}

ux.symfony.com/templates/components/Browser.html.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@
4242
</div>
4343
</div>
4444
</div>
45-

ux.symfony.com/templates/components/ChangelogItem.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<article {{ attributes.defaults({class: "ChangelogItem"}) }} id="{{ item.version }}">
1+
<article {{ attributes.defaults({class: 'ChangelogItem'}) }} id="{{ item.version }}">
22

33
<div class="ChangelogItem__Anchor">
44
<a class="ChangelogItem__Version" href="https://github.com/symfony/ux/releases/tag/{{ item.version }}"

ux.symfony.com/templates/components/DocsLink.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
>{{ title }}</a>
77
{% if icon|default %}
88
<twig:Icon name="{{ icon }}" class="DocsLink_arrow"/>
9-
{% elseif isExternal %}
9+
{% elseif isExternal %}
1010
<twig:Icon name="arrow-right" style="transform: rotate(-45deg);" class="DocsLink_arrow"/>
1111
{% endif %}
1212
</p>

ux.symfony.com/templates/components/Icon/IconGrid.html.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@
1717
{% endfor %}
1818

1919
</div>
20-

ux.symfony.com/templates/components/Icon/IconModal.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<dialog {{ attributes.defaults({
2-
class: "IconModal",
3-
id: "IconModal",
4-
"data-open": this.icon ? "open" : false,
2+
class: 'IconModal',
3+
id: 'IconModal',
4+
'data-open': this.icon ? 'open' : false,
55
}).defaults(stimulus_controller('icon-modal')) }}>
66

77
<input type="hidden" name="icon" value="{{ this.icon }}" data-model="on(change)|icon"/>
@@ -105,7 +105,7 @@
105105
'GitHub': iconSet.github ? {
106106
title: iconSet.github.name,
107107
href: iconSet.github.url,
108-
} : null,
108+
} : null,
109109
'Licence': iconSet.license ? {
110110
title: iconSet.license.title,
111111
href: iconSet.license.url|default,

ux.symfony.com/templates/components/ProductGrid.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div id="results" style="display: flex; gap: 1rem; flex-direction: column;">
55

66
{% if page > 1 %}
7-
{# 🦊 #}
7+
{# 🦊 #}
88
{# Adding a fake "previous page" div is enough to trick the system #}
99
{# It must have the same ID than the original page #}
1010
<div class="ProductGrid_page" id="page--{{ page - 1 }}" data-live-ignore="true"></div>

ux.symfony.com/templates/components/ThemeSwitcher.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<button {{ attributes.defaults({
2-
class: "ThemeSwitcher",
3-
type: "button",
2+
class: 'ThemeSwitcher',
3+
type: 'button',
44
}) }}
55
data-controller="theme-switcher"
66
data-action="theme-switcher#switch"

ux.symfony.com/templates/demos/live_memory/components/LiveMemory/Board.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
data-live-action-param="play"
4747
data-live-level-param="{{ i }}"
4848
>
49-
{{ i+2 }}x{{ i+1 }}
49+
{{ i + 2 }}x{{ i + 1 }}
5050
</button>
5151
{% endfor %}
5252
</div>

ux.symfony.com/templates/demos/live_memory/components/LiveMemory/Card.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'LiveMemory-Card--paired': paired,
77
'LiveMemory-Card--matched': matched,
88
}, class|default) }}"
9-
style="--card-delta:{{ (key* 17) % 10 }};"
9+
style="--card-delta:{{ (key * 17) % 10 }};"
1010
>
1111

1212
{# We keep the back / button to flip until the card is matched #}
@@ -18,7 +18,7 @@
1818
data-live-action-param="flip"
1919
data-live-key-param="{{ key }}"
2020
>
21-
{# data-live-item-name-param="CustomItem"#}
21+
{# data-live-item-name-param="CustomItem" #}
2222
<img class="LiveMemory-Card__back_img LiveMemory-Card__img"
2323
alt="LiveMemory Card Back - {{ back|upper }}"
2424
src="{{ asset('images/demos/live-memory/back/%s.webp'|format(back)) }}"

ux.symfony.com/templates/demos/live_memory/components/LiveMemory/Metrics.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</twig:LiveMemory:Metric>
1818
{% else %}
1919
{% set value = game.timeLimit - (game.isEnded ? min(game.timeLimit, game.time) : 0) %}
20-
{% set value = (value > 99 ? '%03d' : '%02d')|format(value) %}
20+
{% set value = (value > 99 ? '%03d' : '%02d')|format(value) %}
2121
<twig:LiveMemory:Metric icon="time" label="Timer" value="{{ value }}" />
2222
{% endif %}
2323

ux.symfony.com/templates/demos/live_memory/components/LiveMemory/ScoreRow.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div {{ attributes.defaults({ class: 'LiveMemory-ScoreRow' }) }}>
1+
<div {{ attributes.defaults({class: 'LiveMemory-ScoreRow'}) }}>
22
<div class="typing" style="--wait:{{ wait }};--chars: {{ cols }};">
33
<span class="label">{{ label }}</span>
44
<span class="dots">{{ this.getDots() }}</span>

ux.symfony.com/templates/demos/live_memory/components/LiveMemory/Tableau.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{% if card.matched and card.selected %}
2323
<div class="LiveMemory-CardDots" style="--card-dots-delta: {{ key }};">
2424
{% for i in 0..9 %}
25-
<span style="--i: {{ (i + (-x * -y)) }};"></span>
25+
<span style="--i: {{ (i + (-x * -y)) }};"></span>
2626
{% endfor %}
2727
</div>
2828
{% endif %}

ux.symfony.com/templates/demos/live_memory/components/LiveMemory/ThemeSwitch.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
<button {{ attributes.defaults({
3-
class: "LiveMemory-ThemeSwitch",
4-
type: "button",
3+
class: 'LiveMemory-ThemeSwitch',
4+
type: 'button',
55
}) }}
66
data-controller="theme-switcher"
77
data-action="theme-switcher#switch"

ux.symfony.com/templates/demos/live_memory/components/LiveMemory/Timer.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
'--duration': digit.steps * digit.unit,
2828
'--steps': digit.steps,
2929
'--iterations': digit.iterations,
30-
}|map((v, k) => '%s: %s;'|format(k,v)) %}
30+
}|map((v, k) => '%s: %s;'|format(k, v)) %}
3131

3232
<div class="LiveMemory-Timer-Digit" style="{{ style|join(' ') }}" data-unit="{{ digit.unit }}">
3333
<ul>

ux.symfony.com/templates/demos/live_memory/index.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{% extends "base.html.twig" %}
1+
{% extends 'base.html.twig' %}
22

33
{% set meta = {
44
title: demo.name,
5-
title_suffix: " - Symfony UX Demo",
5+
title_suffix: ' - Symfony UX Demo',
66
description: demo.description,
77
canonical: url(demo.route),
88
} %}

ux.symfony.com/templates/icons/index.html.twig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
{% endblock %}
77

88
{% set meta = {
9-
title: "UX Icons - SVG icons made easy",
10-
description: "Search for icons on iconify.design.",
9+
title: 'UX Icons - SVG icons made easy',
10+
description: 'Search for icons on iconify.design.',
1111
canonical: url('app_icons'),
1212
} %}
1313

@@ -33,7 +33,6 @@
3333
<twig:Icon:IconSearch/>
3434
</section>
3535

36-
3736
<section class="container-fluid container-xxl px-4 px-md-5 py-3">
3837
<p class="eyebrows" style="margin: 4rem 0 0;">Iconic Packages</p>
3938
<div class="d-md-flex justify-content-md-between text-center align-items-center text-md-start">

ux.symfony.com/templates/liveDemoBase.html.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% set meta = {
44
title: demo.name,
5-
title_suffix: " - Symfony UX Demo",
5+
title_suffix: ' - Symfony UX Demo',
66
description: demo.description,
77
canonical: url(demo.route),
88
} %}
@@ -60,7 +60,6 @@
6060

6161
{% endblock %}
6262

63-
6463
{% block aside %}
6564
<aside style="background-color: var(--bs-secondary-bg-subtle);" class="mt-5">
6665
<twig:PrevNextDemo demo="{{ demo }}" />

ux.symfony.com/templates/main/demos.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% extends 'base.html.twig' %}
22

33
{% set meta = {
4-
title: "Interactive Demos",
5-
description: "Discover all that Symfony UX offers through our collection of demos, each provided with commented source code (PHP & JS)",
4+
title: 'Interactive Demos',
5+
description: 'Discover all that Symfony UX offers through our collection of demos, each provided with commented source code (PHP & JS)',
66
canonical: url('app_demos'),
77
} %}
88

ux.symfony.com/templates/main/homepage.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% set meta = {
44
title: "Symfony UX: JavaScript tools you'll love",
55
title_suffix: false,
6-
description: "A set of PHP & JavaScript packages, curated by Symfony, to solve your every day frontend problems. Featuring Stimulus and Turbo.",
6+
description: 'A set of PHP & JavaScript packages, curated by Symfony, to solve your every day frontend problems. Featuring Stimulus and Turbo.',
77
canonical: url('app_homepage'),
88
} %}
99

ux.symfony.com/templates/main/packages.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% extends 'base.html.twig' %}
22

33
{% set meta = {
4-
title: "All Packages",
5-
description: "Symfony UX: a treasure chest of packages to solve your frontend problems",
4+
title: 'All Packages',
5+
description: 'Symfony UX: a treasure chest of packages to solve your frontend problems',
66
canonical: url('app_packages'),
77
} %}
88

0 commit comments

Comments
 (0)