From 3463b06f536fa231c2cc770eb88a5e0e15ea393a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Sat, 14 Dec 2013 23:30:51 +0100 Subject: [PATCH] Proper function PHPDoc --- application/ManiaControl.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/application/ManiaControl.php b/application/ManiaControl.php index 7498e056..25fce25e 100644 --- a/application/ManiaControl.php +++ b/application/ManiaControl.php @@ -34,7 +34,11 @@ if (LOG_WRITE_CURRENT_FILE) { define('LOG_CURRENT_FILE', $currentLogFileName); } -// Log function +/** + * Log and echo the given text + * + * @param string $message + */ function logMessage($message) { $message .= PHP_EOL; if (defined('LOG_CURRENT_FILE')) file_put_contents(LOG_CURRENT_FILE, $message, FILE_APPEND); @@ -42,7 +46,11 @@ function logMessage($message) { echo $message; } -// Error level parse function +/** + * Get the prefix for the given error level + * @param int $errorLevel + * @return string + */ function getErrorTag($errorLevel) { if ($errorLevel == E_NOTICE) { return '[PHP NOTICE]';