Skip to content

chore(twig): leverage twig-cs-fixer #60761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 7.4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
chore: run twig-cs-fixer fix
  • Loading branch information
94noni committed Jun 25, 2025
commit b10b9293070cd6992ca1b68225855e16524eb2f0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{% extends "@email/zurb_2/notification/body.html.twig" %}
{% extends '@email/zurb_2/notification/body.html.twig' %}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{% extends "@email/zurb_2/notification/body.txt.twig" %}
{% extends '@email/zurb_2/notification/body.txt.twig' %}
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<head>
<style>
{% block style %}
{{ source("@email/zurb_2/main.css") }}
{{ source("@email/zurb_2/notification/local.css") }}
{{ source('@email/zurb_2/main.css') }}
{{ source('@email/zurb_2/notification/local.css') }}
{% endblock %}
</style>
</head>
<body>
<spacer size="32"></spacer>
<wrapper class="body">
<container class="body_{{ ("urgent" == importance ? "alert" : ("high" == importance ? "warning" : "default")) }}">
<container class="body_{{ ('urgent' == importance ? 'alert' : ('high' == importance ? 'warning' : 'default')) }}">
<spacer size="16"></spacer>
<row>
<columns large="12" small="12">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% use "bootstrap_3_layout.html.twig" %}
{% use 'bootstrap_3_layout.html.twig' %}

{% block form_start -%}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-horizontal')|trim}) %}
Expand All @@ -25,7 +25,7 @@ col-sm-2
{% block form_row -%}
{%- set widget_attr = {} -%}
{%- if help is not empty -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~ '_help'}} -%}
{%- endif -%}
<div{% with {attr: row_attr|merge({class: (row_attr.class|default('') ~ ' form-group' ~ ((not compound or force_error|default(false)) and not valid ? ' has-error'))|trim})} %}{{ block('attributes') }}{% endwith %}>
{{- form_label(form) -}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% use "bootstrap_base_layout.html.twig" %}
{% use 'bootstrap_base_layout.html.twig' %}

{# Widgets #}

Expand Down Expand Up @@ -35,21 +35,21 @@
{% block checkbox_widget -%}
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
{% if 'checkbox-inline' in parent_label_class %}
{{- form_label(form, null, { widget: parent() }) -}}
{{- form_label(form, null, {widget: parent()}) -}}
{% else -%}
<div class="checkbox">
{{- form_label(form, null, { widget: parent() }) -}}
{{- form_label(form, null, {widget: parent()}) -}}
</div>
{%- endif -%}
{%- endblock checkbox_widget %}

{% block radio_widget -%}
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
{%- if 'radio-inline' in parent_label_class -%}
{{- form_label(form, null, { widget: parent() }) -}}
{{- form_label(form, null, {widget: parent()}) -}}
{%- else -%}
<div class="radio">
{{- form_label(form, null, { widget: parent() }) -}}
{{- form_label(form, null, {widget: parent()}) -}}
</div>
{%- endif -%}
{%- endblock radio_widget %}
Expand All @@ -73,13 +73,13 @@
{% endblock %}

{% block checkbox_label -%}
{%- set label_attr = label_attr|merge({'for': id}) -%}
{%- set label_attr = label_attr|merge({for: id}) -%}

{{- block('checkbox_radio_label') -}}
{%- endblock checkbox_label %}

{% block radio_label -%}
{%- set label_attr = label_attr|merge({'for': id}) -%}
{%- set label_attr = label_attr|merge({for: id}) -%}

{{- block('checkbox_radio_label') -}}
{%- endblock radio_label %}
Expand All @@ -104,7 +104,7 @@
{% set label = name|humanize %}
{%- endif -%}
{%- endif -%}
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
<label{% with {attr: label_attr} %}{{ block('attributes') }}{% endwith %}>
{#- if statement must be kept on the same line, to force the space between widget and label -#}
{{- widget|raw }} {% if label is not same as(false) -%}
{%- if translation_domain is same as(false) -%}
Expand All @@ -130,7 +130,7 @@
{% block form_row -%}
{%- set widget_attr = {} -%}
{%- if help is not empty -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~ '_help'}} -%}
{%- endif -%}
<div{% with {attr: row_attr|merge({class: (row_attr.class|default('') ~ ' form-group' ~ ((not compound or force_error|default(false)) and not valid ? ' has-error'))|trim})} %}{{ block('attributes') }}{% endwith %}>
{{- form_label(form) }} {# -#}
Expand Down Expand Up @@ -201,7 +201,7 @@
{% block form_help -%}
{%- if help is not empty -%}
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' help-block')|trim}) -%}
<span id="{{ id }}_help"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
<span id="{{ id }}_help"{% with {attr: help_attr} %}{{ block('attributes') }}{% endwith %}>
{%- if translation_domain is same as(false) -%}
{%- if help_html is same as(false) -%}
{{- help -}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% use "bootstrap_4_layout.html.twig" %}
{% use 'bootstrap_4_layout.html.twig' %}

{# Labels #}

Expand Down Expand Up @@ -26,7 +26,7 @@ col-sm-2
{%- else -%}
{%- set widget_attr = {} -%}
{%- if help is not empty -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~ '_help'}} -%}
{%- endif -%}
<div{% with {attr: row_attr|merge({class: (row_attr.class|default('') ~ ' form-group row' ~ ((not compound or force_error|default(false)) and not valid ? ' is-invalid'))|trim})} %}{{ block('attributes') }}{% endwith %}>
{{- form_label(form) -}}
Expand All @@ -41,7 +41,7 @@ col-sm-2
{% block fieldset_form_row -%}
{%- set widget_attr = {} -%}
{%- if help is not empty -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~ '_help'}} -%}
{%- endif -%}
<fieldset{% with {attr: row_attr|merge({class: (row_attr.class|default('') ~ ' form-group')|trim})} %}{{ block('attributes') }}{% endwith %}>
<div class="row{% if (not compound or force_error|default(false)) and not valid %} is-invalid{% endif %}">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% use "bootstrap_base_layout.html.twig" %}
{% use 'bootstrap_base_layout.html.twig' %}

{# Widgets #}

Expand Down Expand Up @@ -123,10 +123,10 @@
{%- set type = type|default('file') -%}
{%- set input_lang = 'en' -%}
{% if app is defined and app.request is defined %}{%- set input_lang = app.request.locale -%}{%- endif -%}
{%- set attr = {lang: input_lang} | merge(attr) -%}
{%- set attr = {lang: input_lang}|merge(attr) -%}
{{- block('form_widget_simple') -}}
{%- set label_attr = label_attr|merge({ class: (label_attr.class|default('') ~ ' custom-file-label')|trim })|filter((value, key) => key != 'id') -%}
<label for="{{ form.vars.id }}" {% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' custom-file-label')|trim})|filter((value, key) => key != 'id') -%}
<label for="{{ form.vars.id }}" {% with {attr: label_attr} %}{{ block('attributes') }}{% endwith %}>
{%- if attr.placeholder is defined and attr.placeholder is not none -%}
{{- translation_domain is same as(false) ? attr.placeholder : attr.placeholder|trans({}, translation_domain) -}}
{%- endif -%}
Expand Down Expand Up @@ -173,17 +173,17 @@
{%- if 'checkbox-custom' in parent_label_class -%}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' custom-control-input')|trim}) -%}
<div class="custom-control custom-checkbox{{ 'checkbox-inline' in parent_label_class ? ' custom-control-inline' }}">
{{- form_label(form, null, { widget: parent() }) -}}
{{- form_label(form, null, {widget: parent()}) -}}
</div>
{%- elseif 'switch-custom' in parent_label_class -%}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' custom-control-input')|trim}) -%}
<div class="custom-control custom-switch{{ 'switch-inline' in parent_label_class ? ' custom-control-inline' }}">
{{- form_label(form, null, { widget: parent() }) -}}
{{- form_label(form, null, {widget: parent()}) -}}
</div>
{%- else -%}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-check-input')|trim}) -%}
<div class="form-check{{ 'checkbox-inline' in parent_label_class ? ' form-check-inline' }}">
{{- form_label(form, null, { widget: parent() }) -}}
{{- form_label(form, null, {widget: parent()}) -}}
</div>
{%- endif -%}
{%- endblock checkbox_widget %}
Expand All @@ -193,12 +193,12 @@
{%- if 'radio-custom' in parent_label_class -%}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' custom-control-input')|trim}) -%}
<div class="custom-control custom-radio{{ 'radio-inline' in parent_label_class ? ' custom-control-inline' }}">
{{- form_label(form, null, { widget: parent() }) -}}
{{- form_label(form, null, {widget: parent()}) -}}
</div>
{%- else -%}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-check-input')|trim}) -%}
<div class="form-check{{ 'radio-inline' in parent_label_class ? ' form-check-inline' }}">
{{- form_label(form, null, { widget: parent() }) -}}
{{- form_label(form, null, {widget: parent()}) -}}
</div>
{%- endif -%}
{%- endblock radio_widget %}
Expand Down Expand Up @@ -233,7 +233,7 @@
{% if required -%}
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) %}
{%- endif -%}
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>
<{{ element|default('label') }}{% if label_attr %}{% with {attr: label_attr} %}{{ block('attributes') }}{% endwith %}{% endif %}>
{{- block('form_label_content') -}}
{% block form_label_errors %}{{- form_errors(form) -}}{% endblock form_label_errors %}</{{ element|default('label') }}>
{%- else -%}
Expand All @@ -256,7 +256,7 @@
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' form-check-label')|trim}) -%}
{%- endif %}
{%- if not compound -%}
{% set label_attr = label_attr|merge({'for': id}) %}
{% set label_attr = label_attr|merge({for: id}) %}
{%- endif -%}
{%- if required -%}
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) -%}
Expand All @@ -267,7 +267,7 @@
{% endif %}

{{ widget|raw }}
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
<label{% with {attr: label_attr} %}{{ block('attributes') }}{% endwith %}>
{%- if label is not same as(false) -%}
{{- block('form_label_content') -}}
{%- endif -%}
Expand All @@ -284,7 +284,7 @@
{%- endif -%}
{%- set widget_attr = {} -%}
{%- if help is not empty -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~ '_help'}} -%}
{%- endif -%}
<{{ element|default('div') }}{% with {attr: row_attr|merge({class: (row_attr.class|default('') ~ ' form-group')|trim})} %}{{ block('attributes') }}{% endwith %}>
{{- form_label(form) -}}
Expand Down Expand Up @@ -312,7 +312,7 @@
{% block form_help -%}
{%- if help is not empty -%}
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' form-text text-muted')|trim}) -%}
<small id="{{ id }}_help"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
<small id="{{ id }}_help"{% with {attr: help_attr} %}{{ block('attributes') }}{% endwith %}>
{{- block('form_help_content') -}}
</small>
{%- endif -%}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% use "bootstrap_5_layout.html.twig" %}
{% use 'bootstrap_5_layout.html.twig' %}

{# Labels #}

Expand Down Expand Up @@ -29,7 +29,7 @@
{%- else -%}
{%- set widget_attr = {} -%}
{%- if help is not empty -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~ '_help'}} -%}
{%- endif -%}
{%- set row_class = row_class|default(row_attr.class|default('mb-3')) -%}
{%- set is_form_floating = is_form_floating|default('form-floating' in row_class) -%}
Expand Down Expand Up @@ -73,7 +73,7 @@
{% block fieldset_form_row -%}
{%- set widget_attr = {} -%}
{%- if help is not empty -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~ '_help'}} -%}
{%- endif -%}
<fieldset{% with {attr: row_attr|merge({class: row_attr.class|default('mb-3')|trim})} %}{{ block('attributes') }}{% endwith %}>
<div class="row{% if (not compound or force_error|default(false)) and not valid %} is-invalid{% endif %}">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% use "bootstrap_base_layout.html.twig" %}
{% use 'bootstrap_base_layout.html.twig' %}

{# Widgets #}

Expand Down Expand Up @@ -99,9 +99,9 @@
{% set valid = true %}
{% endif %}
<div {{ block('widget_container_attributes') }}>
{{- form_widget(form.date, { datetime: true } ) -}}
{{- form_widget(form.date, {datetime: true}) -}}
{{- form_errors(form.date) -}}
{{- form_widget(form.time, { datetime: true } ) -}}
{{- form_widget(form.time, {datetime: true}) -}}
{{- form_errors(form.time) -}}
</div>
{%- endif -%}
Expand Down Expand Up @@ -226,7 +226,7 @@
{%- if row_class is not empty -%}
<div class="{{ row_class }}">
{%- endif -%}
{{- form_label(form, null, { widget: parent() }) -}}
{{- form_label(form, null, {widget: parent()}) -}}
{%- if row_class is not empty -%}
</div>
{%- endif -%}
Expand All @@ -247,7 +247,7 @@
{%- if row_class is not empty -%}
<div class="{{ row_class }}">
{%- endif -%}
{{- form_label(form, null, { widget: parent() }) -}}
{{- form_label(form, null, {widget: parent()}) -}}
{%- if row_class is not empty -%}
</div>
{%- endif -%}
Expand Down Expand Up @@ -278,13 +278,13 @@
{%- if compound is defined and compound -%}
{%- set element = 'legend' -%}
{%- if 'col-form-label' not in parent_label_class -%}
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' col-form-label' )|trim}) -%}
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' col-form-label')|trim}) -%}
{%- endif -%}
{%- else -%}
{%- set row_class = row_class|default(row_attr.class|default('')) -%}
{%- set label_attr = label_attr|merge({for: id}) -%}
{%- if 'col-form-label' not in parent_label_class -%}
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ('input-group' in row_class ? ' input-group-text' : ' form-label') )|trim}) -%}
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ('input-group' in row_class ? ' input-group-text' : ' form-label'))|trim}) -%}
{%- endif -%}
{%- endif -%}
{%- endif -%}
Expand All @@ -300,7 +300,7 @@
{%- endif -%}
{%- set label_attr = label_attr|merge({class: label_attr_class|trim}) -%}
{%- if not compound -%}
{% set label_attr = label_attr|merge({'for': id}) %}
{% set label_attr = label_attr|merge({for: id}) %}
{%- endif -%}
{%- if required -%}
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) -%}
Expand All @@ -310,7 +310,7 @@
{%- endif -%}

{{ widget|raw }}
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
<label{% with {attr: label_attr} %}{{ block('attributes') }}{% endwith %}>
{%- if label is not same as(false) -%}
{{- block('form_label_content') -}}
{%- endif -%}
Expand All @@ -326,7 +326,7 @@
{%- endif -%}
{%- set widget_attr = {} -%}
{%- if help is not empty -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%}
{%- set widget_attr = {attr: {'aria-describedby': id ~ '_help'}} -%}
{%- endif -%}
{%- set row_class = row_class|default(row_attr.class|default('mb-3')|trim) -%}
<{{ element|default('div') }}{% with {attr: row_attr|merge({class: row_class})} %}{{ block('attributes') }}{% endwith %}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% use "form_div_layout.html.twig" %}
{% use 'form_div_layout.html.twig' %}

{# Widgets #}

Expand Down Expand Up @@ -54,8 +54,8 @@
{%- if form.time.second is defined %}{{ form_label(form.time.second) }}{% endif -%}
</div>

{{- form_widget(form.date, { datetime: true } ) -}}
{{- form_widget(form.time, { datetime: true } ) -}}
{{- form_widget(form.date, {datetime: true}) -}}
{{- form_widget(form.time, {datetime: true}) -}}
</div>
{%- endif -%}
{%- endblock datetime_widget %}
Expand Down
Loading
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy