Skip to content

Commit

Permalink
chore: Move to property promotion for RemoteActivity job
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <[email protected]>
  • Loading branch information
juliusknorr committed Oct 25, 2024
1 parent cf7707b commit 4492623
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions lib/BackgroundJob/RemoteActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4492623

Please sign in to comment.