From: Tim Düsterhus Date: Mon, 28 Sep 2015 13:10:30 +0000 (+0200) Subject: Update code style in core.functions.php X-Git-Tag: 3.0.0_Beta_1~2110 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=36311d67439735dbb0a5c69029bc8c133a4e45ac;p=GitHub%2FWoltLab%2FWCF.git Update code style in core.functions.php --- 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