From ec2704bd153e2cc4218293b77c99be71ab2463e2 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Mon, 14 Oct 2024 08:18:29 +0200 Subject: [PATCH] chore: Move to property promotion for RemoteActivity job Signed-off-by: Julius Knorr --- lib/BackgroundJob/RemoteActivity.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/BackgroundJob/RemoteActivity.php b/lib/BackgroundJob/RemoteActivity.php index 61e896afb..3df45eed0 100644 --- a/lib/BackgroundJob/RemoteActivity.php +++ b/lib/BackgroundJob/RemoteActivity.php @@ -15,16 +15,12 @@ use OCP\Http\Client\IClientService; class RemoteActivity extends QueuedJob { - /** @var IClientService */ - protected $clientService; - - /** @var ICloudIdManager */ - protected $cloudIdManager; - - public function __construct(ITimeFactory $timeFactory, IClientService $clientService, ICloudIdManager $cloudIdManager) { + public function __construct( + ITimeFactory $timeFactory, + private readonly IClientService $clientService, + private readonly ICloudIdManager $cloudIdManager, + ) { parent::__construct($timeFactory); - $this->clientService = $clientService; - $this->cloudIdManager = $cloudIdManager; } protected function run($argument) {