Skip to content

Commit 55c6bae

Browse files
authored
Remove deprecated spaceless filter
> Since twig/twig 3.12: Twig Filter "spaceless" is deprecated
1 parent 14b673c commit 55c6bae

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/Resources/views/stack.html.twig

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@
77
{% endif %}
88
<span class="label httplug-method httplug-method-{{ stack.requestMethod|lower }}">{{ stack.requestMethod }}</span>
99
</div>
10-
{% apply spaceless %}
11-
<div class="label httplug-stack-header-target">
12-
<span class="httplug-scheme">{{ stack.requestScheme }}://</span>
13-
<span class="httplug-host">{{ stack.requestHost }}</span>
14-
{% if stack.requestPort not in [null, 80, 443] %}
15-
<span class="httplug-port">:{{ stack.requestPort }}</span>
16-
{% endif %}
17-
<span class="httplug-target">{{ (stack.requestTarget|default('/') starts with '/' ? '' : '/') ~ stack.requestTarget }}</span>
18-
</div>
19-
{% endapply %}
10+
<div class="label httplug-stack-header-target">
11+
<span class="httplug-scheme">{{ stack.requestScheme }}://</span>
12+
<span class="httplug-host">{{ stack.requestHost }}</span>
13+
{% if stack.requestPort not in [null, 80, 443] %}
14+
<span class="httplug-port">:{{ stack.requestPort }}</span>
15+
{% endif %}
16+
<span class="httplug-target">{{ (stack.requestTarget|default('/') starts with '/' ? '' : '/') ~ stack.requestTarget }}</span>
17+
</div>
2018
<div>
2119
<span class="label httplug-duration">{{ stack.duration|number_format }} ms</span>
2220
{% if stack.responseCode >= 400 and stack.responseCode <= 599 %}

0 commit comments

Comments
 (0)