summaryrefslogtreecommitdiff
path: root/includes/sys_log.php
diff options
context:
space:
mode:
authorBot <bot@myigel.name>2017-01-02 03:57:23 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2017-01-02 03:57:23 +0100
commit7313e15ce8236e19331fb6639a3a5b97c8f06ecd (patch)
tree399e5eaa403d6dd5993ca8fb6f2162319d2ed2e1 /includes/sys_log.php
parentb839e401062b294292fdcbd7e30b79bc149fab6f (diff)
PSR-2 formatting
Diffstat (limited to 'includes/sys_log.php')
-rw-r--r--includes/sys_log.php28
1 files changed, 14 insertions, 14 deletions
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