]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/PidFile.php
Merge pull request #11786 from Quix0r/revert-11783-logging-unsupported
[friendica.git] / src / Util / PidFile.php
index 6d4c0c51089aa6bb137d3ea8f0870d88d4c579a5..38408bcf4bbf498aafd36fe32d19ec6a8aeb2c2d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -97,7 +97,8 @@ class PidFile
         *
         * @return boolean|string PID or "false" if not created
         */
-       static public function create($file) {
+       static public function create(string $file)
+       {
                $pid = self::pidFromFile($file);
 
                // We have a process id? then we quit
@@ -119,7 +120,8 @@ class PidFile
         *
         * @return boolean Is it running?
         */
-       static public function delete($file) {
+       static public function delete(string $file): bool
+       {
                return @unlink($file);
        }
 }