Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions lib/Activity/Listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,17 @@
use Psr\Log\LoggerInterface;

class Listener {
protected IManager $activityManager;

/** @var IManager */
protected $activityManager;
protected IUserSession $userSession;

/** @var IUserSession */
protected $userSession;
protected ChatManager $chatManager;

/** @var ChatManager */
protected $chatManager;
protected ParticipantService $participantService;

/** @var ParticipantService */
protected $participantService;
protected LoggerInterface $logger;

/** @var LoggerInterface */
protected $logger;

/** @var ITimeFactory */
protected $timeFactory;
protected ITimeFactory $timeFactory;

public function __construct(IManager $activityManager,
IUserSession $userSession,
Expand Down
21 changes: 7 additions & 14 deletions lib/Activity/Provider/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,15 @@
use OCP\L10N\IFactory;

abstract class Base implements IProvider {

/** @var IFactory */
protected $languageFactory;
/** @var IURLGenerator */
protected $url;
/** @var Config */
protected $config;
/** @var IManager */
protected $activityManager;
/** @var IUserManager */
protected $userManager;
/** @var Manager */
protected $manager;
protected IFactory $languageFactory;
protected IURLGenerator $url;
protected Config $config;
protected IManager $activityManager;
protected IUserManager $userManager;
protected Manager $manager;

/** @var string[] */
protected $displayNames = [];
protected array $displayNames = [];

public function __construct(IFactory $languageFactory,
IURLGenerator $url,
Expand Down
4 changes: 1 addition & 3 deletions lib/Activity/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
use OCP\IL10N;

class Setting extends ActivitySettings {

/** @var IL10N */
protected $l;
protected IL10N $l;

public function __construct(IL10N $l) {
$this->l = $l;
Expand Down
3 changes: 2 additions & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

namespace OCA\Talk\AppInfo;

use OCP\Util;
use OCA\Circles\Events\AddingCircleMemberEvent;
use OCA\Circles\Events\CircleDestroyedEvent;
use OCA\Circles\Events\RemovingCircleMemberEvent;
Expand Down Expand Up @@ -184,7 +185,7 @@ protected function registerCollaborationResourceProvider(IServerContainer $serve
$resourceManager = $server->get(IProviderManager::class);
$resourceManager->registerResourceProvider(ConversationProvider::class);
$server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function () {
\OCP\Util::addScript(self::APP_ID, 'talk-collections');
Util::addScript(self::APP_ID, 'talk-collections');
});
}

Expand Down
19 changes: 6 additions & 13 deletions lib/BackgroundJob/CheckHostedSignalingServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,12 @@
use Psr\Log\LoggerInterface;

class CheckHostedSignalingServer extends TimedJob {

/** @var HostedSignalingServerService */
private $hostedSignalingServerService;
/** @var IConfig */
private $config;
/** @var IManager */
private $notificationManager;
/** @var IGroupManager */
private $groupManager;
/** @var IURLGenerator */
private $urlGenerator;
/** @var LoggerInterface */
private $logger;
private HostedSignalingServerService $hostedSignalingServerService;
private IConfig $config;
private IManager $notificationManager;
private IGroupManager $groupManager;
private IURLGenerator $urlGenerator;
private LoggerInterface $logger;

public function __construct(ITimeFactory $timeFactory,
HostedSignalingServerService $hostedSignalingServerService,
Expand Down
10 changes: 3 additions & 7 deletions lib/BackgroundJob/CheckMatterbridges.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,11 @@
* @package OCA\Talk\BackgroundJob
*/
class CheckMatterbridges extends TimedJob {
protected IConfig $serverConfig;

/** @var IConfig */
protected $serverConfig;
protected MatterbridgeManager $bridgeManager;

/** @var MatterbridgeManager */
protected $bridgeManager;

/** @var LoggerInterface */
protected $logger;
protected LoggerInterface $logger;

public function __construct(ITimeFactory $time,
IConfig $serverConfig,
Expand Down
7 changes: 2 additions & 5 deletions lib/BackgroundJob/CheckReferenceIdColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@
* @package OCA\Talk\BackgroundJob
*/
class CheckReferenceIdColumn extends TimedJob {

/** @var IJobList */
protected $jobList;
/** @var IConfig */
protected $serverConfig;
protected IJobList $jobList;
protected IConfig $serverConfig;
/** @var IDBConnection|ConnectionAdapter */
protected $connection;

Expand Down
4 changes: 1 addition & 3 deletions lib/BackgroundJob/ExpireSignalingMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
* @package OCA\Talk\BackgroundJob
*/
class ExpireSignalingMessage extends TimedJob {

/** @var Messages */
protected $messages;
protected Messages $messages;

public function __construct(ITimeFactory $timeFactory,
Messages $messages) {
Expand Down
15 changes: 5 additions & 10 deletions lib/BackgroundJob/RemoveEmptyRooms.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,15 @@
* @package OCA\Talk\BackgroundJob
*/
class RemoveEmptyRooms extends TimedJob {
protected Manager $manager;

/** @var Manager */
protected $manager;
protected ParticipantService $participantService;

/** @var ParticipantService */
protected $participantService;
protected LoggerInterface $logger;

/** @var LoggerInterface */
protected $logger;
protected IUserMountCache $userMountCache;

/** @var IUserMountCache */
protected $userMountCache;

protected $numDeletedRooms = 0;
protected int $numDeletedRooms = 0;

public function __construct(ITimeFactory $timeFactory,
Manager $manager,
Expand Down
7 changes: 2 additions & 5 deletions lib/BackgroundJob/ResetAssignedSignalingServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@
use OCP\ICacheFactory;

class ResetAssignedSignalingServer extends TimedJob {

/** @var Manager */
protected $manager;
/** @var ICache */
protected $cache;
protected Manager $manager;
protected ICache $cache;

public function __construct(ITimeFactory $time,
Manager $manager,
Expand Down
5 changes: 2 additions & 3 deletions lib/BackgroundJob/RetryJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@
* @package OCA\Talk\BackgroundJob
*/
class RetryJob extends Job {
/** @var Notifications */
private $notifications;
private Notifications $notifications;

/** @var int max number of attempts to send the request */
private $maxTry = 20;
private int $maxTry = 20;


public function __construct(Notifications $notifications,
Expand Down
13 changes: 4 additions & 9 deletions lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,10 @@
use OCP\IUserSession;

class Capabilities implements IPublicCapability {

/** @var IConfig */
protected $serverConfig;
/** @var Config */
protected $talkConfig;
/** @var ICommentsManager */
protected $commentsManager;
/** @var IUserSession */
protected $userSession;
protected IConfig $serverConfig;
protected Config $talkConfig;
protected ICommentsManager $commentsManager;
protected IUserSession $userSession;

public function __construct(IConfig $serverConfig,
Config $talkConfig,
Expand Down
27 changes: 9 additions & 18 deletions lib/Chat/AutoComplete/SearchPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,15 @@
use OCP\IUserManager;

class SearchPlugin implements ISearchPlugin {

/** @var IUserManager */
protected $userManager;
/** @var GuestManager */
protected $guestManager;
/** @var TalkSession */
protected $talkSession;
/** @var ParticipantService */
protected $participantService;
/** @var Util */
protected $util;
/** @var string|null */
protected $userId;
/** @var IL10N */
protected $l;

/** @var Room */
protected $room;
protected IUserManager $userManager;
protected GuestManager $guestManager;
protected TalkSession $talkSession;
protected ParticipantService $participantService;
protected Util $util;
protected ?string $userId;
protected IL10N $l;

protected ?Room $room = null;

public function __construct(IUserManager $userManager,
GuestManager $guestManager,
Expand Down
4 changes: 1 addition & 3 deletions lib/Chat/AutoComplete/Sorter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
use OCP\Comments\ICommentsManager;

class Sorter implements ISorter {

/** @var ICommentsManager */
protected $commentsManager;
protected ICommentsManager $commentsManager;

public function __construct(CommentsManager $commentsManager) {
$this->commentsManager = $commentsManager;
Expand Down
3 changes: 1 addition & 2 deletions lib/Chat/Changelog/Listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public static function register(IEventDispatcher $dispatcher): void {
}, -100);
}

/** @var Manager */
protected $manager;
protected Manager $manager;

public function __construct(Manager $manager) {
$this->manager = $manager;
Expand Down
19 changes: 6 additions & 13 deletions lib/Chat/Changelog/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,12 @@
use OCP\IL10N;

class Manager {

/** @var IConfig */
protected $config;
/** @var IDBConnection */
protected $connection;
/** @var RoomManager */
protected $roomManager;
/** @var ChatManager */
protected $chatManager;
/** @var ITimeFactory */
protected $timeFactory;
/** @var IL10N */
protected $l;
protected IConfig $config;
protected IDBConnection $connection;
protected RoomManager $roomManager;
protected ChatManager $chatManager;
protected ITimeFactory $timeFactory;
protected IL10N $l;

public function __construct(IConfig $config,
IDBConnection $connection,
Expand Down
30 changes: 10 additions & 20 deletions lib/Chat/ChatManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,16 @@ class ChatManager {
/** @var ICommentsManager|CommentsManager
*/
private $commentsManager;
/** @var IEventDispatcher */
private $dispatcher;
/** @var IDBConnection */
private $connection;
/** @var INotificationManager */
private $notificationManager;
/** @var IManager */
private $shareManager;
/** @var RoomShareProvider */
private $shareProvider;
/** @var ParticipantService */
private $participantService;
/** @var Notifier */
private $notifier;
/** @var ITimeFactory */
protected $timeFactory;
/** @var ICache */
protected $cache;
/** @var ICache */
protected $unreadCountCache;
private IEventDispatcher $dispatcher;
private IDBConnection $connection;
private INotificationManager $notificationManager;
private \OCP\Share\IManager $shareManager;
private RoomShareProvider $shareProvider;
private ParticipantService $participantService;
private Notifier $notifier;
protected ITimeFactory $timeFactory;
protected ICache $cache;
protected ICache $unreadCountCache;
protected AttachmentService $attachmentService;

public function __construct(CommentsManager $commentsManager,
Expand Down
Loading