From 88f693bb71fc17601344e63d281619a60fc111c5 Mon Sep 17 00:00:00 2001 From: Art4 Date: Sun, 1 Dec 2024 21:24:43 +0000 Subject: [PATCH] Fix errors in Console namespace --- src/Console/ClearAvatarCache.php | 5 +++-- src/Console/Contact.php | 3 ++- src/Console/MergeContacts.php | 2 +- src/Console/MoveToAvatarCache.php | 9 +++++---- src/Console/Relay.php | 3 ++- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/Console/ClearAvatarCache.php b/src/Console/ClearAvatarCache.php index 82ba8f6660..e80684c354 100644 --- a/src/Console/ClearAvatarCache.php +++ b/src/Console/ClearAvatarCache.php @@ -10,6 +10,7 @@ namespace Friendica\Console; use Friendica\App\BaseURL; use Friendica\Contact\Avatar; use Friendica\Core\L10n; +use Friendica\Database\Database; use Friendica\Model\Contact; use Friendica\Core\Config\Capability\IManageConfigValues; @@ -21,12 +22,12 @@ class ClearAvatarCache extends \Asika\SimpleConsole\Console protected $helpOptions = ['h', 'help', '?']; /** - * @var $dba Friendica\Database\Database + * @var Database */ private $dba; /** - * @var $baseurl Friendica\App\BaseURL + * @var BaseURL */ private $baseUrl; diff --git a/src/Console/Contact.php b/src/Console/Contact.php index b33baa6efa..8173054826 100644 --- a/src/Console/Contact.php +++ b/src/Console/Contact.php @@ -9,6 +9,7 @@ namespace Friendica\Console; use Console_Table; use Friendica\App\Mode; +use Friendica\Core\PConfig\Capability\IManagePersonalConfigValues; use Friendica\DI; use Friendica\Model\Contact as ContactModel; use Friendica\Model\User as UserModel; @@ -29,7 +30,7 @@ class Contact extends \Asika\SimpleConsole\Console */ private $appMode; /** - * @var IPConfig + * @var IManagePersonalConfigValues */ private $pConfig; diff --git a/src/Console/MergeContacts.php b/src/Console/MergeContacts.php index e9930a55d8..54f3fe5142 100644 --- a/src/Console/MergeContacts.php +++ b/src/Console/MergeContacts.php @@ -19,7 +19,7 @@ class MergeContacts extends \Asika\SimpleConsole\Console protected $helpOptions = ['h', 'help', '?']; /** - * @var $dba Database + * @var Database */ private $dba; diff --git a/src/Console/MoveToAvatarCache.php b/src/Console/MoveToAvatarCache.php index 90a35630e1..567c82f2b6 100644 --- a/src/Console/MoveToAvatarCache.php +++ b/src/Console/MoveToAvatarCache.php @@ -9,12 +9,13 @@ namespace Friendica\Console; use Friendica\App\BaseURL; use Friendica\Contact\Avatar; +use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\L10n; +use Friendica\Core\Protocol; +use Friendica\Database\Database; use Friendica\Model\Contact; use Friendica\Model\Photo; use Friendica\Object\Image; -use Friendica\Core\Config\Capability\IManageConfigValues; -use Friendica\Core\Protocol; /** * tool to move cached avatars to the avatar file cache. @@ -24,12 +25,12 @@ class MoveToAvatarCache extends \Asika\SimpleConsole\Console protected $helpOptions = ['h', 'help', '?']; /** - * @var $dba Friendica\Database\Database + * @var Database */ private $dba; /** - * @var $baseurl Friendica\App\BaseURL + * @var BaseURL */ private $baseUrl; diff --git a/src/Console/Relay.php b/src/Console/Relay.php index 343cda28e9..3aeaad458f 100644 --- a/src/Console/Relay.php +++ b/src/Console/Relay.php @@ -8,6 +8,7 @@ namespace Friendica\Console; use Asika\SimpleConsole\CommandArgsException; +use Friendica\Database\Database; use Friendica\Model\APContact; use Friendica\Protocol\ActivityPub\Transmitter; use Friendica\Protocol\Relay as ProtocolRelay; @@ -23,7 +24,7 @@ class Relay extends \Asika\SimpleConsole\Console protected $helpOptions = ['h', 'help', '?']; /** - * @var $dba Friendica\Database\Database + * @var Database */ private $dba;