From aa5f037af71c915424c6dcfd5ad2dc82797dc0d6 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 23 Nov 2023 10:22:34 +0100 Subject: chore: apply changes from Nextcloud coding standards 1.1.1 Signed-off-by: Joas Schilling Signed-off-by: Benjamin Gaussorgues --- apps/files_sharing/lib/Command/DeleteOrphanShares.php | 3 +-- apps/files_sharing/lib/Command/ExiprationNotification.php | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'apps/files_sharing/lib/Command') diff --git a/apps/files_sharing/lib/Command/DeleteOrphanShares.php b/apps/files_sharing/lib/Command/DeleteOrphanShares.php index 310f27ebfa3..57158774758 100644 --- a/apps/files_sharing/lib/Command/DeleteOrphanShares.php +++ b/apps/files_sharing/lib/Command/DeleteOrphanShares.php @@ -23,14 +23,13 @@ declare(strict_types=1); namespace OCA\Files_Sharing\Command; - -use Symfony\Component\Console\Question\ConfirmationQuestion; use OC\Core\Command\Base; use OCA\Files_Sharing\OrphanHelper; use Symfony\Component\Console\Helper\QuestionHelper; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\Console\Question\ConfirmationQuestion; class DeleteOrphanShares extends Base { private OrphanHelper $orphanHelper; diff --git a/apps/files_sharing/lib/Command/ExiprationNotification.php b/apps/files_sharing/lib/Command/ExiprationNotification.php index e77b41b1835..b0311e09221 100644 --- a/apps/files_sharing/lib/Command/ExiprationNotification.php +++ b/apps/files_sharing/lib/Command/ExiprationNotification.php @@ -46,9 +46,9 @@ class ExiprationNotification extends Command { private $shareManager; public function __construct(ITimeFactory $time, - NotificationManager $notificationManager, - IDBConnection $connection, - ShareManager $shareManager) { + NotificationManager $notificationManager, + IDBConnection $connection, + ShareManager $shareManager) { parent::__construct(); $this->notificationManager = $notificationManager; @@ -67,7 +67,7 @@ class ExiprationNotification extends Command { //Current time $minTime = $this->time->getDateTime(); $minTime->add(new \DateInterval('P1D')); - $minTime->setTime(0,0,0); + $minTime->setTime(0, 0, 0); $maxTime = clone $minTime; $maxTime->setTime(23, 59, 59); -- cgit v1.2.3