diff --git a/src/Core/Addon/AddonHelper.php b/src/Core/Addon/AddonHelper.php index 8b597e6472..98a999c23f 100644 --- a/src/Core/Addon/AddonHelper.php +++ b/src/Core/Addon/AddonHelper.php @@ -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> + * @return array> */ public function getAvailableAddons(): array; diff --git a/src/Core/Addon/AddonProxy.php b/src/Core/Addon/AddonProxy.php index 5873422313..aaa6a23689 100644 --- a/src/Core/Addon/AddonProxy.php +++ b/src/Core/Addon/AddonProxy.php @@ -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> + * @return array> */ public function getAvailableAddons(): array { diff --git a/src/Module/Friendica.php b/src/Module/Friendica.php index 97fb8e27e5..1a741b890c 100644 --- a/src/Module/Friendica.php +++ b/src/Module/Friendica.php @@ -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.', '' . App::VERSION . '', $this->baseUrl, '' . $this->config->get('system', 'build') . '/' . DB_UPDATE_VERSION . '', - '' . $this->keyValue->get('post_update_version') . '/' . PostUpdate::VERSION . ''), + '' . $this->keyValue->get('post_update_version') . '/' . PostUpdate::VERSION . '' + ), 'friendica' => $this->t('Please visit Friendi.ca to learn more about the Friendica project.'), 'bugs' => $this->t('Bug reports and issues: please visit') . ' ' . '' . $this->t('the bugtracker at github') . '', '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') { diff --git a/src/Protocol/ZOT.php b/src/Protocol/ZOT.php index 0f9dd12653..28fa493454 100644 --- a/src/Protocol/ZOT.php +++ b/src/Protocol/ZOT.php @@ -8,7 +8,6 @@ namespace Friendica\Protocol; use Friendica\App; -use Friendica\Core\Addon; use Friendica\DI; use Friendica\Module; use Friendica\Module\Register;