Update src/Core/Worker/Factory/Process.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
c7be395e6a
commit
fb908aca6d
1 changed files with 1 additions and 5 deletions
|
@ -29,11 +29,7 @@ class Process extends BaseFactory implements ICanCreateFromTableRow
|
||||||
{
|
{
|
||||||
public function determineHost(?string $hostname = null): string
|
public function determineHost(?string $hostname = null): string
|
||||||
{
|
{
|
||||||
if (empty($hostname)) {
|
return strtolower($hostname ?? php_uname('n'));
|
||||||
$hostname = php_uname('n');
|
|
||||||
}
|
|
||||||
|
|
||||||
return strtolower($hostname);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function createFromTableRow(array $row): Entity\Process
|
public function createFromTableRow(array $row): Entity\Process
|
||||||
|
|
Loading…
Reference in a new issue