Skip to content

Commit 972a92e

Browse files
committed
Misc. tweaks and improvements
1 parent ebb44e4 commit 972a92e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ protected function templateExists($template)
145145
*
146146
* @return array
147147
*/
148-
protected function reorderTemplates($templates)
148+
private function reorderTemplates($templates)
149149
{
150150
$templates = $this->moveArrayElementToFirstPosition($templates, 'twig');
151151
$templates = $this->moveArrayElementToFirstPosition($templates, 'memory');

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
<span>{{ collector.statuscode }} {{ collector.statustext }}</span>
3838
</div>
3939
<div class="sf-toolbar-info-piece">
40-
<b>Controller method</b>
40+
<b>Controller</b>
4141
<span>{{ request_handler }}</span>
4242
</div>
4343
{% if collector.controller.class is defined %}
4444
<div class="sf-toolbar-info-piece">
45-
<b>Controller file</b>
45+
<b>Controller class</b>
4646
<span>{{ collector.controller.class }}</span>
4747
</div>
4848
{% endif %}

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{% block toolbar %}
1919
{% set total_time = collector.events|length ? '%.0f'|format(collector.duration) : 'n/a' %}
2020
{% 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' : '' %}
2222

2323
{% set icon %}
2424
{{ include('@WebProfiler/Icon/time.svg.twig') }}

0 commit comments

Comments
 (0)
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