Skip to content

Commit 6bb700b

Browse files
committed
tweak css classnames to match output generated by PHPDebugConsole
1 parent bcdbca0 commit 6bb700b

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Download Composer (if not already installed) [more info](https://getcomposer.org
3535

3636
**Install a WAMP router** (if you don't already have one)
3737
If you don't already have a WAMP router up and running, you might as well install a PHP-based one here in the same folder *(but again, it could be installed anywhere, or be a node based router)*
38-
One client+router install can support many PHPDebugConsole projects
38+
One client+router install can support many PHPDebugConsole projects
3939
`$ php composer.phar require voryx/thruway`
4040

4141
**Start the WAMP router.**
@@ -54,15 +54,15 @@ $debug = \bdk\Debug::getInstance();
5454
new \bdk\Debug\WampClient($debug);
5555
```
5656

57-
**Navigate to the client in your browser**
57+
**Navigate to the client in your browser**
5858
`http://localhost/debugWampClient`
5959

6060
The client should have connected to the router and is ready to receive log messages
6161

6262
**Add PHPDebugConsole to the project you wish to debug**
6363
`$ php composer.phar require bdk/debug`
6464

65-
**Install a outputWamp plugin dependency**
65+
**Install a PHPDebugConsole/outputWamp plugin dependency**
6666
`$ php composer.phar require bdk/wamp-publisher`
6767

6868
Add the OutputWamp plugin to your application

src/js/DumpObject.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ var logDumper = (function($, module){
168168
var viaDebugInfo = info.viaDebugInfo;
169169
var isPrivateAncestor = info['visibility'] == 'private' && info['inheritedFrom'];
170170
var $dd = $('<dd class="property">' +
171-
'<span class="t_modifier">' + info.visibility + '</span>' +
171+
'<span class="t_modifier_'+info.visibility+'">' + info.visibility + '</span>' +
172172
(info.type
173173
? ' <span class="t_type">[' + info.type + ']</span>'
174174
: ''
@@ -183,7 +183,9 @@ var logDumper = (function($, module){
183183
module.dump(info.value) +
184184
'</dd>'
185185
);
186-
$dd.addClass("visibility-" + info.visibility);
186+
if (info.visibility != "debug") {
187+
$dd.addClass(info.visibility);
188+
}
187189
if (viaDebugInfo) {
188190
$dd.addClass("debug-value");
189191
}
@@ -207,11 +209,11 @@ var logDumper = (function($, module){
207209
var returnType = '';
208210
var $dd;
209211
if (info.isFinal) {
210-
modifiers.push('<span class="t_modifier">final</span>');
212+
modifiers.push('<span class="t_modifier_final">final</span>');
211213
}
212-
modifiers.push('<span class="t_modifier">' + info.visibility + '</span>');
214+
modifiers.push('<span class="t_modifier_'+info.visibility+'">' + info.visibility + '</span>');
213215
if (info.isStatic) {
214-
modifiers.push('<span class="t_modifier">static</span>');
216+
modifiers.push('<span class="t_modifier_static">static</span>');
215217
}
216218
if (typeof info.phpDoc.return != "undefined") {
217219
returnType = ' <span class="t_type"' +
@@ -237,7 +239,7 @@ var logDumper = (function($, module){
237239
) +
238240
'</dd>'
239241
);
240-
$dd.addClass("visibility-" + info.visibility);
242+
$dd.addClass(info.visibility);
241243
if (info.isDeprecated) {
242244
$dd.addClass("deprecated");
243245
}

0 commit comments

Comments
 (0)