From 36311d67439735dbb0a5c69029bc8c133a4e45ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 28 Sep 2015 15:10:30 +0200 Subject: [PATCH] Update code style in core.functions.php --- wcfsetup/install/files/lib/core.functions.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/lib/core.functions.php b/wcfsetup/install/files/lib/core.functions.php index d5cdc16cc4..8bd22db7ac 100644 --- a/wcfsetup/install/files/lib/core.functions.php +++ b/wcfsetup/install/files/lib/core.functions.php @@ -6,21 +6,20 @@ * @package com.woltlab.wcf * @category Community Framework */ -// set exception handler -set_exception_handler(array('wcf\system\WCF', 'handleException')); +use wcf\system\WCF; +// set exception handler +set_exception_handler([ WCF::class, 'handleException' ]); // set php error handler -set_error_handler(array('wcf\system\WCF', 'handleError'), E_ALL); - +set_error_handler([ WCF::class, 'handleError' ], E_ALL); // set shutdown function -register_shutdown_function(array('wcf\system\WCF', 'destruct')); - +register_shutdown_function([ WCF::class, 'destruct' ]); // set autoload function -spl_autoload_register(array('wcf\system\WCF', 'autoload')); +spl_autoload_register([ WCF::class, 'autoload' ]); // define escape string shortcut function escapeString($string) { - return wcf\system\WCF::getDB()->escapeString($string); + return WCF::getDB()->escapeString($string); } // define DOCUMENT_ROOT on IIS if not set -- 2.20.1