From fb908aca6dce44b2e2dccdca1a7a60be2643a766 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 7 Nov 2021 13:29:33 +0100 Subject: [PATCH] Update src/Core/Worker/Factory/Process.php Co-authored-by: Hypolite Petovan --- src/Core/Worker/Factory/Process.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Core/Worker/Factory/Process.php b/src/Core/Worker/Factory/Process.php index 7e9c2606f..9a45eebc4 100644 --- a/src/Core/Worker/Factory/Process.php +++ b/src/Core/Worker/Factory/Process.php @@ -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