Skip to content

Commit bc617a9

Browse files
committed
Update src/Util.php
1 parent 17f3773 commit bc617a9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Util.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -664,25 +664,16 @@ public static function debug($var, $options = null, $return = false) {
664664
$is_pjax = self::is_pjax();
665665

666666
$is_html = !($is_cli || $is_ajax) || $is_pjax;
667-
$dismiss = self::get('dismiss', $options, true);
668667
$escape = self::get('escape', $options, true);
669668
$new_line = self::get('newline', $options, true);
670669

671-
$close_btn_html = $dismiss ? '
672-
<button type="button" class="close" aria-label="Close" onclick="this.parentNode.remove();">
673-
<span aria-hidden="true">&times;</span>
674-
</button>' : '';
675-
676670
$info = print_r($var, true);
677671

678672
$info = preg_replace('/\s+\(/', ' (', $info);
679673
$info = preg_replace('/ {4}([)])/', '$1', $info);
680674

681675
$result = $is_html ? '
682-
<div class="debug">
683-
<pre>'.($escape ? self::escape_html($info) : $info).'</pre>
684-
'.$close_btn_html.'
685-
</div>' : $info.($new_line ? EOL : '');
676+
<pre>'.($escape ? self::escape_html($info) : $info).'</pre>' : $info.($new_line ? EOL : '');
686677

687678
if ($return) return $result;
688679
else echo $result;

0 commit comments

Comments
 (0)