<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Model;
use Friendica\Core\Addon;
+use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Database\DBA;
use Friendica\DI;
use stdClass;
$config = DI::config();
$usage = new stdClass();
+ $usage->users = [];
if (!empty($config->get('system', 'nodeinfo'))) {
$usage->users = [
*
* @return array with supported services
*/
- public static function getServices()
+ public static function getServices(): array
{
$services = [
'inbound' => [],
return $services;
}
- public static function getOrganization($config)
+ /**
+ * Gathers organization information and returns it as an array
+ *
+ * @param IManageConfigValues $config Configuration instance
+ * @return array Organization information
+ */
+ public static function getOrganization(IManageConfigValues $config): array
{
- $organization = ['name' => null, 'contact' => null, 'account' => null];
+ $organization = [
+ 'name' => null,
+ 'contact' => null,
+ 'account' => null
+ ];
if (!empty($config->get('config', 'admin_email'))) {
$adminList = explode(',', str_replace(' ', '', $config->get('config', 'admin_email')));