]> git.mxchange.org Git - friendica.git/commitdiff
Fix code style
authorArt4 <art4@wlabs.de>
Tue, 4 Feb 2025 07:00:09 +0000 (07:00 +0000)
committerArt4 <art4@wlabs.de>
Tue, 4 Feb 2025 07:00:09 +0000 (07:00 +0000)
src/Core/Addon/AddonHelper.php
src/Core/Addon/AddonProxy.php
src/Module/Friendica.php
src/Protocol/ZOT.php

index 8b597e6472c0c306c892863dbf1860ae623055cf..98a999c23f05f1b8074f499a80dece8df7e9b9b6 100644 (file)
@@ -19,7 +19,7 @@ interface AddonHelper
         * This list is made from scanning the addon/ folder.
         * Unsupported addons are excluded unless they already are enabled or system.show_unsupported_addon is set.
         *
-        * @return array<array<string|bool|array>>
+        * @return array<array<string|string|array>>
         */
        public function getAvailableAddons(): array;
 
index 587342231364905a9fe80fdc08bb2069e991bd50..aaa6a2368941919053e94cd55f11cef33104cc2d 100644 (file)
@@ -23,7 +23,7 @@ final class AddonProxy implements AddonHelper
         * This list is made from scanning the addon/ folder.
         * Unsupported addons are excluded unless they already are enabled or system.show_unsupported_addon is set.
         *
-        * @return array<array<string|bool|array>>
+        * @return array<array<string|string|array>>
         */
        public function getAvailableAddons(): array
        {
index 97fb8e27e54ca494d7f94777099aa588a186a406..1a741b890c150a8e75e9791accfd88008ef2a1df 100644 (file)
@@ -11,7 +11,6 @@ use Friendica\App;
 use Friendica\App\Arguments;
 use Friendica\App\BaseURL;
 use Friendica\BaseModule;
-use Friendica\Core\Addon;
 use Friendica\Core\Addon\AddonHelper;
 use Friendica\Core\Config\Capability\IManageConfigValues;
 use Friendica\Core\Hook;
@@ -44,9 +43,9 @@ class Friendica extends BaseModule
        {
                parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
 
-               $this->config = $config;
-               $this->keyValue = $keyValue;
-               $this->session = $session;
+               $this->config      = $config;
+               $this->keyValue    = $keyValue;
+               $this->session     = $session;
                $this->addonHelper = $addonHelper;
        }
 
@@ -86,8 +85,8 @@ class Friendica extends BaseModule
 
                if (!empty($blockList) && ($this->config->get('blocklist', 'public') || $this->session->isAuthenticated())) {
                        $blocked = [
-                               'title'    => $this->t('On this server the following remote servers are blocked.'),
-                               'header'   => [
+                               'title'  => $this->t('On this server the following remote servers are blocked.'),
+                               'header' => [
                                        $this->t('Blocked domain'),
                                        $this->t('Reason for the block'),
                                ],
@@ -105,11 +104,13 @@ class Friendica extends BaseModule
                $tpl = Renderer::getMarkupTemplate('friendica.tpl');
 
                return Renderer::replaceMacros($tpl, [
-                       'about'     => $this->t('This is Friendica, version %s that is running at the web location %s. The database version is %s, the post update version is %s.',
+                       'about' => $this->t(
+                               'This is Friendica, version %s that is running at the web location %s. The database version is %s, the post update version is %s.',
                                '<strong>' . App::VERSION . '</strong>',
                                $this->baseUrl,
                                '<strong>' . $this->config->get('system', 'build') . '/' . DB_UPDATE_VERSION . '</strong>',
-                               '<strong>' . $this->keyValue->get('post_update_version') . '/' . PostUpdate::VERSION . '</strong>'),
+                               '<strong>' . $this->keyValue->get('post_update_version') . '/' . PostUpdate::VERSION . '</strong>'
+                       ),
                        'friendica' => $this->t('Please visit <a href="https://friendi.ca">Friendi.ca</a> to learn more about the Friendica project.'),
                        'bugs'      => $this->t('Bug reports and issues: please visit') . ' ' . '<a href="https://github.com/friendica/friendica/issues?state=open">' . $this->t('the bugtracker at github') . '</a>',
                        'info'      => $this->t('Suggestions, praise, etc. - please email "info" at "friendi - dot - ca'),
@@ -151,7 +152,7 @@ class Friendica extends BaseModule
                        $register_policy = $register_policies[$register_policy_int];
                }
 
-               $admin = [];
+               $admin         = [];
                $administrator = User::getFirstAdmin(['username', 'nickname']);
                if (!empty($administrator)) {
                        $admin = [
@@ -164,7 +165,7 @@ class Friendica extends BaseModule
 
                $this->config->reload();
                $locked_features = [];
-               $featureLocks = $this->config->get('config', 'feature_lock');
+               $featureLocks    = $this->config->get('config', 'feature_lock');
                if (isset($featureLocks)) {
                        foreach ($featureLocks as $feature => $lock) {
                                if ($feature === 'config_loaded') {
index 0f9dd126530967c257f7a8e58a2037c6fa082608..28fa493454c016f526336d0fa95474d026814f65 100644 (file)
@@ -8,7 +8,6 @@
 namespace Friendica\Protocol;
 
 use Friendica\App;
-use Friendica\Core\Addon;
 use Friendica\DI;
 use Friendica\Module;
 use Friendica\Module\Register;