<?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
*
{
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