diff --git a/src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php b/src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php index 6553d85c8f..8c5c2c0ae8 100644 --- a/src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php +++ b/src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php @@ -116,6 +116,7 @@ Sfdump = window.Sfdump || (function (doc) { var refStyle = doc.createElement('style'), rxEsc = /([.*+?^${}()|\[\]\/\\])/g, idRx = /\bsf-dump-\d+-ref[012]\w+\b/, + keyHint = 0 <= navigator.platform.toUpperCase().indexOf('MAC') ? 'Cmd' : 'Ctrl', addEventListener = function (e, n, cb) { e.addEventListener(n, cb, false); }; @@ -255,7 +256,7 @@ return function (root) { } else { a.innerHTML += ' '; } - a.title = (a.title ? a.title+'\n' : '')+'[Ctrl+click] Expand all children'; + a.title = (a.title ? a.title+'\n[' : '[')+keyHint+'+click] Expand all children'; a.innerHTML += ''; a.className += ' sf-dump-toggle'; if ('sf-dump' != elt.parentNode.className) { @@ -388,7 +389,7 @@ EOHTML; $style .= sprintf(' title="%s%s characters"', $attr['length'], $attr['binary'] ? ' binary or non-UTF-8' : ''); } elseif ('note' === $style) { if (false !== $c = strrpos($v, '\\')) { - return sprintf('%s', $v, $style, substr($v, $c+1)); + return sprintf('%s', $v, $style, substr($v, $c + 1)); } elseif (':' === $v[0]) { return sprintf('%s', substr($v, 1), $style, $v); }