fix style

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
This commit is contained in:
Benjamin Brahmer 2023-03-02 16:44:46 +01:00
parent 8cdcde2e56
commit 7cdf3c83e8
1 changed files with 4 additions and 5 deletions

View File

@ -10,12 +10,12 @@ class RemoveUnusedJob implements IRepairStep
{
/**
* @var LoggerInterface
* @var LoggerInterface
*/
protected $logger;
/**
* @var IJobList
* @var IJobList
*/
protected $joblist;
@ -39,13 +39,12 @@ class RemoveUnusedJob implements IRepairStep
*/
public function run(IOutput $output)
{
if($this->joblist->has("OCA\News\Cron\Updater", null)){
if ($this->joblist->has("OCA\News\Cron\Updater", null)) {
$output->info("Job exists, attempting to remove");
$this->joblist->remove("OCA\News\Cron\Updater");
$output->info("Job removed");
} else {
$output->info("Job does not exist, all good");
}
}
}
}