]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Debug/Localtime.php
Improved request value handling
[friendica.git] / src / Module / Debug / Localtime.php
index ff1466408e922152f0dfb481aa092c88938153d2..95d1d7665d0023b3356e1c7672dcaca3f1b59f78 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -31,7 +31,7 @@ class Localtime extends BaseModule
 {
        static $mod_localtime = '';
 
-       public static function post(array $parameters = [])
+       protected function post(array $request = [])
        {
                $time = ($_REQUEST['time'] ?? '') ?: 'now';
 
@@ -42,7 +42,7 @@ class Localtime extends BaseModule
                }
        }
 
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
                $time = ($_REQUEST['time'] ?? '') ?: 'now';