Skip to content

Commit

Permalink
Merge pull request #2766 from nextcloud/jr/expireGroupVersionsTrash-t…
Browse files Browse the repository at this point in the history
…yping

ExpireGroupVersionsTrash: add type declarations
  • Loading branch information
come-nc authored Feb 5, 2024
2 parents 7e22c5a + 0231ff2 commit db33f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Command/ExpireGroup/ExpireGroupVersionsTrash.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ public function __construct(
$this->expiration = $expiration;
}

protected function configure() {
protected function configure(): void {
parent::configure();
$this
->setName('groupfolders:expire')
->setDescription('Trigger expiry of versions and trashbin for files stored in group folders');
}

protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
parent::execute($input, $output);

[$count, $size] = $this->trashBackend->expire($this->expiration);
Expand Down

0 comments on commit db33f9b

Please sign in to comment.