From 2c5685c89cc9c0e9420726a0d7297bbf66fe40e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 19 Jun 2022 01:10:50 +0200 Subject: [PATCH] Changes: - changed to proper "use Foo\Bar;" - added doctag - added return type as this is fixed --- src/Model/Nodeinfo.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Model/Nodeinfo.php b/src/Model/Nodeinfo.php index 2695d234d6..047fe0e58a 100644 --- a/src/Model/Nodeinfo.php +++ b/src/Model/Nodeinfo.php @@ -22,6 +22,7 @@ namespace Friendica\Model; use Friendica\Core\Addon; +use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Database\DBA; use Friendica\DI; use stdClass; @@ -156,7 +157,13 @@ class Nodeinfo return $services; } - public static function getOrganization(\Friendica\Core\Config\Capability\IManageConfigValues $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, -- 2.39.5