From 7313e15ce8236e19331fb6639a3a5b97c8f06ecd Mon Sep 17 00:00:00 2001 From: Bot Date: Mon, 2 Jan 2017 03:57:23 +0100 Subject: PSR-2 formatting --- includes/sys_log.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'includes/sys_log.php') diff --git a/includes/sys_log.php b/includes/sys_log.php index 66c323c1..18a0e83c 100644 --- a/includes/sys_log.php +++ b/includes/sys_log.php @@ -7,24 +7,26 @@ * @param * $message */ -function engelsystem_log($message) { - global $user; +function engelsystem_log($message) +{ + global $user; - $nick = "Guest"; - if (isset($user)) { - $nick = User_Nick_render($user); - } - LogEntry_create($nick, $message); + $nick = "Guest"; + if (isset($user)) { + $nick = User_Nick_render($user); + } + LogEntry_create($nick, $message); } /** * Generates a PHP Stacktrace. */ -function debug_string_backtrace() { - ob_start(); - debug_print_backtrace(); - $trace = ob_get_contents(); - ob_end_clean(); +function debug_string_backtrace() +{ + ob_start(); + debug_print_backtrace(); + $trace = ob_get_contents(); + ob_end_clean(); // Remove first item from backtrace as it's this function which // is redundant. @@ -35,5 +37,3 @@ function debug_string_backtrace() { return $trace; } - -?> \ No newline at end of file -- cgit v1.2.3-54-g00ecf