Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit 77603ba

Browse files
CS fixes
1 parent 6637e62 commit 77603ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Debug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function enable($errorReportingLevel = \E_ALL, $displayErrors = tr
4949
if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
5050
ini_set('display_errors', 0);
5151
ExceptionHandler::register();
52-
} elseif ($displayErrors && (!filter_var(ini_get('log_errors'), \FILTER_VALIDATE_BOOLEAN) || ini_get('error_log'))) {
52+
} elseif ($displayErrors && (!filter_var(\ini_get('log_errors'), \FILTER_VALIDATE_BOOLEAN) || \ini_get('error_log'))) {
5353
// CLI - display errors only if they're not already logged to STDERR
5454
ini_set('display_errors', 1);
5555
}

ExceptionHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ExceptionHandler
5555
public function __construct(bool $debug = true, string $charset = null, $fileLinkFormat = null)
5656
{
5757
$this->debug = $debug;
58-
$this->charset = $charset ?: ini_get('default_charset') ?: 'UTF-8';
58+
$this->charset = $charset ?: \ini_get('default_charset') ?: 'UTF-8';
5959
$this->fileLinkFormat = $fileLinkFormat;
6060
}
6161

@@ -390,7 +390,7 @@ private function formatClass(string $class): string
390390
private function formatPath(string $path, int $line): string
391391
{
392392
$file = $this->escapeHtml(preg_match('#[^/\\\\]*+$#', $path, $file) ? $file[0] : $path);
393-
$fmt = $this->fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
393+
$fmt = $this->fileLinkFormat ?: \ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
394394

395395
if (!$fmt) {
396396
return sprintf('<span class="block trace-file-path">in <span title="%s%3$s"><strong>%s</strong>%s</span></span>', $this->escapeHtml($path), $file, 0 < $line ? ' line '.$line : '');

0 commit comments

Comments
 (0)