Skip to content

Commit 16211ac

Browse files
committed
5564: Lint twig files
1 parent 0d207f9 commit 16211ac

14 files changed

Lines changed: 24 additions & 24 deletions

templates/EasyAdminBundle/Fields/code.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
33
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
44
{% if field.formattedValue is null %}
5-
<span class="badge badge-secondary">{{ 'label.null'|trans(domain = 'EasyAdminBundle') }}</span>
5+
<span class="badge badge-secondary">{{ 'label.null'|trans(domain: 'EasyAdminBundle') }}</span>
66
{% else %}
77
<code>{{ field.formattedValue }}</code>
8-
{% endif %}
8+
{% endif %}

templates/EasyAdminBundle/Fields/config_file_path.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
{% if ea.crud.currentAction == 'detail' %}
55
<code>{{ field.formattedValue }}</code>
66
{% else %}
7-
<code>{{ field.formattedValue | replace({'/etc/nginx/sites-enabled/': './'}) }}</code>
8-
{% endif %}
7+
<code>{{ field.formattedValue|replace({'/etc/nginx/sites-enabled/': './'}) }}</code>
8+
{% endif %}

templates/EasyAdminBundle/Fields/db_version.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
33
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
44
{% if field.formattedValue is null %}
5-
<span class="badge badge-secondary">{{ 'label.null'|trans(domain = 'EasyAdminBundle') }}</span>
5+
<span class="badge badge-secondary">{{ 'label.null'|trans(domain: 'EasyAdminBundle') }}</span>
66
{% else %}
77
<span class="badge badge-info">{{ field.formattedValue }}</span>
8-
{% endif %}
8+
{% endif %}

templates/EasyAdminBundle/Fields/domain.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
<a target="_blank" rel="noopener" href="https://{{ field.value }}">{{ field.value }}</a>
1010
{% else %}
1111
<a target="_blank" rel="noopener" href="https://{{ field.value }}">{{ field.formattedValue }}</a>
12-
{% endif %}
12+
{% endif %}

templates/EasyAdminBundle/Fields/eol.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
33
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
44

5-
{% set slicedDate = field.formattedValue | slice(0, 7) %}
5+
{% set slicedDate = field.formattedValue|slice(0, 7) %}
66
{% if ea.crud.currentAction == 'detail' %}
77
{% set outputValue = field.formattedValue %}
88
{% else %}

templates/EasyAdminBundle/Fields/hosting_provider.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
44
{% if field.formattedValue is empty %}
55
<span class="badge badge-warning">?</span>
6-
{% elseif field.formattedValue == constant('App\\Types\\HostingProviderType::AZURE') %}
6+
{% elseif field.formattedValue == constant('App\\Types\\HostingProviderType::AZURE') %}
77
<span class="badge badge-light">{{ field.formattedValue }}</span>
8-
{% elseif field.formattedValue == constant('App\\Types\\HostingProviderType::IT_RELATION') %}
8+
{% elseif field.formattedValue == constant('App\\Types\\HostingProviderType::IT_RELATION') %}
99
<span class="badge badge-secondary">{{ field.formattedValue }}</span>
10-
{% elseif field.formattedValue == constant('App\\Types\\HostingProviderType::DBC') %}
10+
{% elseif field.formattedValue == constant('App\\Types\\HostingProviderType::DBC') %}
1111
<span class="badge badge-dark">{{ field.formattedValue }}</span>
1212
{% else %}
1313
<span class="badge badge-secondary">{{ field.formattedValue }}</span>

templates/EasyAdminBundle/Fields/root_dir.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<code class="text-primary">
88
<span title="{{ field.formattedValue }}">
99
{% if field.formattedValue starts with '/data/www/' %}
10-
{{ field.formattedValue | replace({'/data/www/': './'}) }}
10+
{{ field.formattedValue|replace({'/data/www/': './'}) }}
1111
{% elseif field.formattedValue starts with '/home/www/' %}
12-
<code class="text-primary">{{ field.formattedValue | replace({'/home/www/': './'}) }}</code>
12+
<code class="text-primary">{{ field.formattedValue|replace({'/home/www/': './'}) }}</code>
1313
{% else %}
1414
<code class="text-primary">{{ field.formattedValue }}</code>
1515
{% endif %}

templates/EasyAdminBundle/Fields/server_type.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
<span class="badge badge-primary">{{ field.formattedValue }}</span>
1212
{% else %}
1313
<span class="badge badge-secondary">{{ field.formattedValue }}</span>
14-
{% endif %}
14+
{% endif %}

templates/EasyAdminBundle/Fields/site.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
22
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
33
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
4-
{% if field.formattedValue == constant('App\\Types\\SiteType::NGINX') %}
4+
{% if field.formattedValue == constant('App\\Types\\SiteType::NGINX') %}
55
<span class="badge badge-secondary">{{ field.formattedValue }}</span>
6-
{% elseif field.formattedValue == constant('App\\Types\\SiteType::DOCKER') %}
6+
{% elseif field.formattedValue == constant('App\\Types\\SiteType::DOCKER') %}
77
<span class="badge badge-light">{{ field.formattedValue }}</span>
88
{% else %}
99
<span class="badge badge-dark">{{ field.formattedValue }}</span>

templates/EasyAdminBundle/Fields/sources.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% if ea.crud.currentAction == 'detail' %}
55
<ul class="list-unstyled">
66
{% for item in field.value %}
7-
{# <li>{{ item }}</li>#}
7+
{# <li>{{ item }}</li> #}
88
<li><a target="_blank" rel="noopener" href="{{ item }}">{{ item }}</a></li>
99
{% endfor %}
1010
</ul>

0 commit comments

Comments
 (0)