]> git.mxchange.org Git - friendica.git/commitdiff
Fix binary_operator_spaces errors
authorHank Grabowski <hankgrabowski@gmail.com>
Mon, 20 Feb 2023 13:05:01 +0000 (08:05 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Mon, 20 Feb 2023 13:05:01 +0000 (08:05 -0500)
src/Module/Api/Mastodon/InstanceV2.php
src/Object/Api/Mastodon/InstanceV2.php
src/Object/Api/Mastodon/InstanceV2/Contact.php
src/Object/Api/Mastodon/InstanceV2/FriendicaExtensions.php
src/Object/Api/Mastodon/InstanceV2/Registrations.php
src/Object/Api/Mastodon/InstanceV2/StatusesConfig.php

index e5af34b67a68b9f463841c4ad62002756e7f4e94..3177570c9416dbc08666ef352419d4a329781adb 100644 (file)
@@ -59,7 +59,7 @@ class InstanceV2 extends BaseApi
                parent::__construct($app, $l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
 
                $this->database = $database;
-               $this->config = $config;
+               $this->config   = $config;
        }
 
        /**
index f3551c564646c242f65844f37e06c16fceab089b..20ea45ba3c88a1041e8214a7bb4578a2d65a5559 100644 (file)
@@ -79,18 +79,18 @@ class InstanceV2 extends BaseDataTransferObject
         */
        public function __construct(IManageConfigValues $config, BaseURL $baseUrl, Database $database, array $rules = [])
        {
-               $this->domain            = $baseUrl->getHostname();
-               $this->title             = $config->get('config', 'sitename');
-               $this->version           = '2.8.0 (compatible; Friendica ' . App::VERSION . ')';
-               $this->source_url                = null; //not supported yet
-               $this->description       = $config->get('config', 'info');
-               $this->usage             = new Usage($config);
-               $this->thumbnail         = new Thumbnail($baseUrl);
-               $this->languages         = [$config->get('system', 'language')];
-               $this->configuration     = new Configuration();
-               $this->registrations     = new Registrations();
-               $this->contact           = new Contact($database);
-               $this->rules             = $rules;
-               $this->friendica         = new FriendicaExtensions();
+               $this->domain        = $baseUrl->getHostname();
+               $this->title         = $config->get('config', 'sitename');
+               $this->version       = '2.8.0 (compatible; Friendica ' . App::VERSION . ')';
+               $this->source_url        = null; //not supported yet
+               $this->description   = $config->get('config', 'info');
+               $this->usage         = new Usage($config);
+               $this->thumbnail     = new Thumbnail($baseUrl);
+               $this->languages     = [$config->get('system', 'language')];
+               $this->configuration = new Configuration();
+               $this->registrations = new Registrations();
+               $this->contact       = new Contact($database);
+               $this->rules         = $rules;
+               $this->friendica     = new FriendicaExtensions();
        }
 }
index 45631b0fb55d5c601239c3632b3ca2fcf5ca53c1..007c0495bc3b781b1db7727169d0761d93767eb9 100644 (file)
@@ -42,7 +42,7 @@ class Contact extends BaseDataTransferObject
 
        public function __construct(Database $database)
        {
-               $this->email = implode(',', User::getAdminEmailList());
+               $this->email   = implode(',', User::getAdminEmailList());
                $administrator = User::getFirstAdmin();
                if ($administrator) {
                        $adminContact = $database->selectFirst(
index b69b5c0267c070022587406b2dd29e7a7caf5e11..2805e48665eae0b04233b465f83cf144e2ea66ce 100644 (file)
@@ -24,8 +24,8 @@ class FriendicaExtensions extends BaseDataTransferObject
 
        public function __construct()
        {
-               $this->version = App::VERSION;
-               $this->codename = App::CODENAME;
+               $this->version    = App::VERSION;
+               $this->codename   = App::CODENAME;
                $this->db_version = DI::config()->get('system', 'build');
        }
 }
index 78c5713ea3e18148b232606b221c3feae3f33ced..c1e7769e83786d1e197626513bf134471a925187 100644 (file)
@@ -39,9 +39,9 @@ class Registrations extends BaseDataTransferObject
 
        public function __construct()
        {
-               $config = DI::config();
-               $register_policy = intval($config->get('config', 'register_policy'));
-               $this->enabled =  ($register_policy != Register::CLOSED);
+               $config                  = DI::config();
+               $register_policy         = intval($config->get('config', 'register_policy'));
+               $this->enabled           =  ($register_policy != Register::CLOSED);
                $this->approval_required = ($register_policy == Register::APPROVE);
        }
 }
index 5bf20ec974abd1689bf5c34a8aed1ec9a3bc6697..fb74b1d5bd149b77ed31af5907e486fb85f8e0af 100644 (file)
@@ -36,7 +36,7 @@ class StatusesConfig extends BaseDataTransferObject
 
        public function __construct()
        {
-               $config = DI::config();
+               $config               = DI::config();
                $this->max_characters = (int)$config->get(
                        'config',
                        'api_import_size',