Skip to content

Commit

Permalink
change codystyle to tabs
Browse files Browse the repository at this point in the history
Signed-off-by: european <sammellog@gmail.com>
  • Loading branch information
european committed Nov 13, 2020
1 parent c9735b1 commit 93af317
Showing 1 changed file with 28 additions and 31 deletions.
59 changes: 28 additions & 31 deletions apps/files_sharing/lib/BackgroundJob/CleanupRemoteStoragesJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,38 +33,35 @@
/**
* Background job for the Command CleanupRemoteStorages
*/
class CleanupRemoteStoragesJob extends TimedJob
{
/**
* @var CleanupRemoteStorages
*/
private $remoteStorages;
class CleanupRemoteStoragesJob extends TimedJob {
/**
* @var CleanupRemoteStorages
*/
private $remoteStorages;

/**
* CleanupRemoteStoragesJob constructor.
* @param ITimeFactory $time
* @param CleanupRemoteStorages $remoteStorages
*/
private function __construct(ITimeFactory $time, CleanupRemoteStorages $remoteStorages)
{
parent::__construct($time);
$this->remoteStorages = $remoteStorages;
/**
* CleanupRemoteStoragesJob constructor.
* @param ITimeFactory $time
* @param CleanupRemoteStorages $remoteStorages
*/
private function __construct(ITimeFactory $time, CleanupRemoteStorages $remoteStorages) {
parent::__construct($time);
$this->remoteStorages = $remoteStorages;

// Only once a week
parent::setInterval(604800);
}
// Only once a week
parent::setInterval(604800);
}

/**
* @param $argument
* @return void
*/
protected function run($argument)
{
$input = new ArrayInput(array(
'command' => 'sharing:cleanup-remote-storages',
'--dry-run' => ""
));
$output = new NullOutput();
$this->remoteStorages->execute($input, $output);
}
/**
* @param $argument
* @return void
*/
protected function run($argument) {
$input = new ArrayInput(array(
'command' => 'sharing:cleanup-remote-storages',
'--dry-run' => ""
));
$output = new NullOutput();
$this->remoteStorages->execute($input, $output);
}
}

0 comments on commit 93af317

Please sign in to comment.