From 06f53d2d1a11783e1e37e757007de5521543ca8a Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Mon, 20 Feb 2023 13:31:04 -0500 Subject: [PATCH] Add missing spaces after colons for function parameters for style check reasons --- src/Module/Api/Mastodon/InstanceV2.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Module/Api/Mastodon/InstanceV2.php b/src/Module/Api/Mastodon/InstanceV2.php index c1dd8314f0..647d292c73 100644 --- a/src/Module/Api/Mastodon/InstanceV2.php +++ b/src/Module/Api/Mastodon/InstanceV2.php @@ -104,7 +104,7 @@ class InstanceV2 extends BaseApi )); } - private function buildConfigurationInfo():InstanceEntity\Configuration + private function buildConfigurationInfo(): InstanceEntity\Configuration { $statuses_config = new InstanceEntity\StatusesConfig((int)$this->config->get( 'config', @@ -119,7 +119,7 @@ class InstanceV2 extends BaseApi ); } - private function buildContactInfo():InstanceEntity\Contact + private function buildContactInfo(): InstanceEntity\Contact { $email = implode(',', User::getAdminEmailList()); $administrator = User::getFirstAdmin(); @@ -137,7 +137,7 @@ class InstanceV2 extends BaseApi return new InstanceEntity\Contact($email, $account); } - private function buildFriendicaExtensionInfo():InstanceEntity\FriendicaExtensions + private function buildFriendicaExtensionInfo(): InstanceEntity\FriendicaExtensions { return new InstanceEntity\FriendicaExtensions( App::VERSION, @@ -146,7 +146,7 @@ class InstanceV2 extends BaseApi ); } - private function buildRegistrationsInfo():InstanceEntity\Registrations + private function buildRegistrationsInfo(): InstanceEntity\Registrations { $register_policy = intval($this->config->get('config', 'register_policy')); $enabled = ($register_policy != Register::CLOSED); @@ -155,7 +155,7 @@ class InstanceV2 extends BaseApi return new InstanceEntity\Registrations($enabled, $approval_required); } - private function buildUsageInfo():InstanceEntity\Usage + private function buildUsageInfo(): InstanceEntity\Usage { if (!empty($this->config->get('system', 'nodeinfo'))) { $active_monthly = intval(DI::keyValue()->get('nodeinfo_active_users_monthly')); -- 2.39.5