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 <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Oct 14, 2024
1 parent a51d666 commit cc0ff11
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 cc0ff11

Please sign in to comment.