aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Background/Delete.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/Background/Delete.php')
-rw-r--r--core/Command/Background/Delete.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Command/Background/Delete.php b/core/Command/Background/Delete.php
index 45148d2d414..50ae309065b 100644
--- a/core/Command/Background/Delete.php
+++ b/core/Command/Background/Delete.php
@@ -10,6 +10,7 @@ namespace OC\Core\Command\Background;
use OC\Core\Command\Base;
use OCP\BackgroundJob\IJobList;
+use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@@ -34,7 +35,7 @@ class Delete extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output): int {
- $jobId = (int) $input->getArgument('job-id');
+ $jobId = (int)$input->getArgument('job-id');
$job = $this->jobList->getById($jobId);
if ($job === null) {
@@ -51,6 +52,7 @@ class Delete extends Base {
'/^(y|Y)/i'
);
+ /** @var QuestionHelper $helper */
$helper = $this->getHelper('question');
if (!$helper->ask($input, $output, $question)) {
$output->writeln('aborted.');