]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Worker/Factory/Process.php
Drop UpdateContact worker task if contact is blocked
[friendica.git] / src / Core / Worker / Factory / Process.php
index 7e9c2606fb94e145e6c51cd58814a4a273074448..c6e8472dd90e18b4ad93d57a83080f86c8f67c63 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -29,11 +29,7 @@ class Process extends BaseFactory implements ICanCreateFromTableRow
 {
        public function determineHost(?string $hostname = null): string
        {
-               if (empty($hostname)) {
-                       $hostname = php_uname('n');
-               }
-
-               return strtolower($hostname);
+               return strtolower($hostname ?? php_uname('n'));
        }
 
        public function createFromTableRow(array $row): Entity\Process