Skip to content

Commit b676bd5

Browse files
committed
Show only debug type in debugbar panel
1 parent 2018707 commit b676bd5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/Debug/SessionCollector.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace Framework\Session\Debug;
1111

1212
use Framework\Debug\Collector;
13-
use Framework\Debug\Debugger;
1413
use Framework\Helpers\ArraySimple;
1514
use Framework\Session\SaveHandler;
1615
use Framework\Session\SaveHandlers\DatabaseHandler;
@@ -96,15 +95,15 @@ protected function renderData() : string
9695
<thead>
9796
<tr>
9897
<th>Key</th>
99-
<th>Value</th>
98+
<th>Value Type</th>
10099
</tr>
101100
</thead>
102101
<tbody>
103102
<?php foreach ($data as $key => $value): ?>
104103
<tr>
105104
<td><?= \htmlentities((string) $key) ?></td>
106105
<td><pre><code class="language-php"><?=
107-
\htmlentities(Debugger::makeDebugValue($value))
106+
\htmlentities(\get_debug_type($value))
108107
?></code></pre>
109108
</td>
110109
</tr>
@@ -138,15 +137,15 @@ protected function renderFlashOld() : string
138137
<thead>
139138
<tr>
140139
<th>Key</th>
141-
<th>Value</th>
140+
<th>Value Type</th>
142141
</tr>
143142
</thead>
144143
<tbody>
145144
<?php foreach ($data as $key => $value): ?>
146145
<tr>
147146
<td><?= \htmlentities($key) ?></td>
148147
<td><pre><code class="language-php"><?=
149-
\htmlentities(Debugger::makeDebugValue($value))
148+
\htmlentities(\get_debug_type($value))
150149
?></code></pre>
151150
</td>
152151
</tr>
@@ -170,15 +169,15 @@ protected function renderFlashNew() : string
170169
<thead>
171170
<tr>
172171
<th>Key</th>
173-
<th>Value</th>
172+
<th>Value Type</th>
174173
</tr>
175174
</thead>
176175
<tbody>
177176
<?php foreach ($data as $key => $value): ?>
178177
<tr>
179178
<td><?= \htmlentities($key) ?></td>
180179
<td><pre><code class="language-php"><?=
181-
\htmlentities(Debugger::makeDebugValue($value))
180+
\htmlentities(\get_debug_type($value))
182181
?></code></pre>
183182
</td>
184183
</tr>
@@ -200,7 +199,7 @@ protected function renderTemp() : string
200199
<thead>
201200
<tr>
202201
<th>Key</th>
203-
<th>Value</th>
202+
<th>Value Type</th>
204203
<th>TTL</th>
205204
</tr>
206205
</thead>
@@ -209,7 +208,7 @@ protected function renderTemp() : string
209208
<tr>
210209
<td><?= \htmlentities($key) ?></td>
211210
<td><pre><code class="language-php"><?=
212-
\htmlentities(Debugger::makeDebugValue($value))
211+
\htmlentities(\get_debug_type($value))
213212
?></code></pre>
214213
</td>
215214
<td><?= \date('Y-m-d H:i:s', $value['ttl']) ?></td>

0 commit comments

Comments
 (0)