/* @}*/
// Normally this constant is defined - but not if "pcntl" isn't installed
-if (!defined("SIGTERM")) {
- define("SIGTERM", 15);
+if (!defined('SIGTERM')) {
+ define('SIGTERM', 15);
}
/**
if (!empty($_SESSION['authenticated']) && !empty($_SESSION['uid'])) {
return intval($_SESSION['uid']);
}
+
return false;
}
* This function save text in session, to be shown to the user at next page load
*
* @param string $s - Text of notice
+ *
+ * @return void
*/
-function notice($s)
+function notice(string $s)
{
if (empty($_SESSION)) {
return;
* This function save text in session, to be shown to the user at next page load
*
* @param string $s - Text of notice
+ *
+ * @return void
*/
-function info($s)
+function info(string $s)
{
if (empty($_SESSION)) {
return;