- changed double-quotes to single
- added type-hints
/* @}*/
// 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;
}
*
* @param string $s - Text of notice
*/
-function notice($s)
+function notice(string $s)
{
if (empty($_SESSION)) {
return;
*
* @param string $s - Text of notice
*/
-function info($s)
+function info(string $s)
{
if (empty($_SESSION)) {
return;