Skip to content

Commit f15dbab

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Util.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -664,16 +664,14 @@ 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-
$escape = self::get('escape', $options, true);
668667
$new_line = self::get('newline', $options, true);
669668

670669
$info = print_r($var, true);
671670

672671
$info = preg_replace('/\s+\(/', ' (', $info);
673672
$info = preg_replace('/ {4}([)])/', '$1', $info);
674673

675-
$result = $is_html ? '
676-
<pre>'.($escape ? self::escape_html($info) : $info).'</pre>' : $info.($new_line ? EOL : '');
674+
$result = $is_html ? '<pre>'.$info.'</pre>' : $info.($new_line ? PHP_EOL : '');
677675

678676
if ($return) return $result;
679677
else echo $result;

0 commit comments

Comments
 (0)