From 70498dbeae2d0f7fb651fa594f886fc7214d1bcf Mon Sep 17 00:00:00 2001 From: Vlad Gregurco Date: Sat, 4 Aug 2018 01:21:17 +0300 Subject: [PATCH] [WebProfilerBundle] remove useless macro arguments --- .../Resources/views/Collector/time.html.twig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig index 4f82f2da73..f08e21c959 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig @@ -126,7 +126,7 @@ {% endif %} - {{ helper.display_timeline('timeline_' ~ token, collector.events, colors) }} + {{ helper.display_timeline('timeline_' ~ token, colors) }} {% if profile.children|length %}

Note: sections with a striped background correspond to sub-requests.

@@ -140,7 +140,7 @@ {{ events.__section__.duration }} ms - {{ helper.display_timeline('timeline_' ~ child.token, events, colors) }} + {{ helper.display_timeline('timeline_' ~ child.token, colors) }} {% endfor %} {% endif %} @@ -470,12 +470,12 @@ var requests_data = { "max": {{ "%F"|format(collector.events.__section__.endtime) }}, "requests": [ -{{ helper.dump_request_data(token, profile, collector.events, collector.events.__section__.origin) }} +{{ helper.dump_request_data(token, collector.events, collector.events.__section__.origin) }} {% if profile.children|length %} , {% for child in profile.children %} -{{ helper.dump_request_data(child.token, child, child.getcollector('time').events, collector.events.__section__.origin) }}{{ loop.last ? '' : ',' }} +{{ helper.dump_request_data(child.token, child.getcollector('time').events, collector.events.__section__.origin) }}{{ loop.last ? '' : ',' }} {% endfor %} {% endif %} ] @@ -513,7 +513,7 @@ //]]>{% endautoescape %} {% endblock %} -{% macro dump_request_data(token, profile, events, origin) %} +{% macro dump_request_data(token, events, origin) %} {% autoescape 'js' %} {% from _self import dump_events %} { @@ -549,7 +549,7 @@ {% endautoescape %} {% endmacro %} -{% macro display_timeline(id, events, colors) %} +{% macro display_timeline(id, colors) %}
{% for category, color in colors %}