File tree 3 files changed +4
-4
lines changed
src/Symfony/Bundle/WebProfilerBundle
Resources/views/Collector
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ protected function templateExists($template)
145
145
*
146
146
* @return array
147
147
*/
148
- protected function reorderTemplates ($ templates )
148
+ private function reorderTemplates ($ templates )
149
149
{
150
150
$ templates = $ this ->moveArrayElementToFirstPosition ($ templates , 'twig ' );
151
151
$ templates = $ this ->moveArrayElementToFirstPosition ($ templates , 'memory ' );
Original file line number Diff line number Diff line change 37
37
<span >{{ collector .statuscode }} {{ collector .statustext }}</span >
38
38
</div >
39
39
<div class =" sf-toolbar-info-piece" >
40
- <b >Controller method </b >
40
+ <b >Controller</b >
41
41
<span >{{ request_handler }}</span >
42
42
</div >
43
43
{% if collector .controller .class is defined %}
44
44
<div class =" sf-toolbar-info-piece" >
45
- <b >Controller file </b >
45
+ <b >Controller class </b >
46
46
<span >{{ collector .controller .class }}</span >
47
47
</div >
48
48
{% endif %}
Original file line number Diff line number Diff line change 18
18
{% block toolbar %}
19
19
{% set total_time = collector .events | length ? ' %.0f' | format (collector .duration ) : ' n/a' %}
20
20
{% set initialization_time = collector .events | length ? ' %.0f' | format (collector .inittime ) : ' n/a' %}
21
- {% set status_color = collector .events | length ? collector .duration > 1000 ? ' yellow' : ' ' %}
21
+ {% set status_color = collector .events | length and collector .duration > 1000 ? ' yellow' : ' ' %}
22
22
23
23
{% set icon %}
24
24
{{ include (' @WebProfiler/Icon/time.svg.twig' ) }}
You can’t perform that action at this time.
0 commit comments