Skip to content

Commit 16b1801

Browse files
committed
RoutingPanel: added declare(strict_types=1)
1 parent 1990aea commit 16b1801

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Bridges/ApplicationTracy/templates/RoutingPanel.panel.phtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace Nette\Bridges\ApplicationTracy;
45

@@ -62,7 +63,7 @@ use Tracy\Dumper;
6263

6364
<td><code>
6465
<?php foreach ($router['defaults'] as $key => $value): ?>
65-
<?= htmlspecialchars($key, ENT_IGNORE, 'UTF-8'), '&nbsp;=&nbsp;', is_string($value) ? htmlspecialchars($value, ENT_IGNORE, 'UTF-8') . '<br />' : Dumper::toHtml($value, [Dumper::COLLAPSE => true, Dumper::LIVE => true]) ?>
66+
<?= htmlspecialchars((string) $key, ENT_IGNORE, 'UTF-8'), '&nbsp;=&nbsp;', is_string($value) ? htmlspecialchars($value, ENT_IGNORE, 'UTF-8') . '<br />' : Dumper::toHtml($value, [Dumper::COLLAPSE => true, Dumper::LIVE => true]) ?>
6667
<?php endforeach ?>
6768
</code></td>
6869

@@ -73,7 +74,7 @@ use Tracy\Dumper;
7374
<strong><?= htmlspecialchars($router['request']->getPresenterName() . ':' . (isset($params[Presenter::ACTION_KEY]) ? $params[Presenter::ACTION_KEY] : Presenter::DEFAULT_ACTION), ENT_NOQUOTES, 'UTF-8') ?></strong><br />
7475
<?php unset($params[Presenter::ACTION_KEY]) ?>
7576
<?php foreach ($params as $key => $value): ?>
76-
<?= htmlspecialchars($key, ENT_IGNORE, 'UTF-8'), '&nbsp;=&nbsp;', is_string($value) ? htmlspecialchars($value, ENT_IGNORE, 'UTF-8') . '<br />' : Dumper::toHtml($value, [Dumper::COLLAPSE => true, Dumper::LIVE => true]) ?>
77+
<?= htmlspecialchars((string) $key, ENT_IGNORE, 'UTF-8'), '&nbsp;=&nbsp;', is_string($value) ? htmlspecialchars($value, ENT_IGNORE, 'UTF-8') . '<br />' : Dumper::toHtml($value, [Dumper::COLLAPSE => true, Dumper::LIVE => true]) ?>
7778
<?php endforeach ?>
7879
</code><?php endif ?></td>
7980
</tr>

src/Bridges/ApplicationTracy/templates/RoutingPanel.tab.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace Nette\Bridges\ApplicationTracy;
45

0 commit comments

Comments
 (0)