From b299d85770e96e0e7c9503aa4490261ab095a539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 23 Jan 2024 14:03:03 +0100 Subject: [PATCH] chore: composer run cs:fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/BackgroundJobs/AdminNotification.php | 6 +++--- lib/BackgroundJobs/MonthlyReport.php | 4 ++-- lib/Controller/EndpointController.php | 11 +++++------ lib/Migration/SendAdminNotification.php | 4 ++-- lib/Settings/AdminSettings.php | 8 ++++---- templates/admin.php | 2 +- 6 files changed, 17 insertions(+), 18 deletions(-) diff --git a/lib/BackgroundJobs/AdminNotification.php b/lib/BackgroundJobs/AdminNotification.php index 06659b6b..411756dc 100644 --- a/lib/BackgroundJobs/AdminNotification.php +++ b/lib/BackgroundJobs/AdminNotification.php @@ -33,9 +33,9 @@ class AdminNotification extends QueuedJob { protected IURLGenerator $url; public function __construct(ITimeFactory $time, - IManager $manager, - IGroupManager $groupManager, - IURLGenerator $url) { + IManager $manager, + IGroupManager $groupManager, + IURLGenerator $url) { parent::__construct($time); $this->manager = $manager; $this->groupManager = $groupManager; diff --git a/lib/BackgroundJobs/MonthlyReport.php b/lib/BackgroundJobs/MonthlyReport.php index c427cc5b..086b0561 100644 --- a/lib/BackgroundJobs/MonthlyReport.php +++ b/lib/BackgroundJobs/MonthlyReport.php @@ -33,8 +33,8 @@ class MonthlyReport extends TimedJob { protected LoggerInterface $logger; public function __construct(ITimeFactory $time, - Collector $collector, - LoggerInterface $logger) { + Collector $collector, + LoggerInterface $logger) { parent::__construct($time); $this->collector = $collector; $this->logger = $logger; diff --git a/lib/Controller/EndpointController.php b/lib/Controller/EndpointController.php index be7d925b..5d43e1a4 100644 --- a/lib/Controller/EndpointController.php +++ b/lib/Controller/EndpointController.php @@ -23,14 +23,13 @@ namespace OCA\Survey_Client\Controller; +use OCA\Survey_Client\BackgroundJobs\MonthlyReport; use OCA\Survey_Client\Collector; - use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\OCSController; use OCP\BackgroundJob\IJobList; use OCP\IRequest; use OCP\Notification\IManager; -use OCA\Survey_Client\BackgroundJobs\MonthlyReport; class EndpointController extends OCSController { @@ -51,10 +50,10 @@ class EndpointController extends OCSController { * @param IManager $manager */ public function __construct(string $appName, - IRequest $request, - Collector $collector, - IJobList $jobList, - IManager $manager) { + IRequest $request, + Collector $collector, + IJobList $jobList, + IManager $manager) { parent::__construct($appName, $request); $this->collector = $collector; diff --git a/lib/Migration/SendAdminNotification.php b/lib/Migration/SendAdminNotification.php index ea15d0de..80b5f213 100644 --- a/lib/Migration/SendAdminNotification.php +++ b/lib/Migration/SendAdminNotification.php @@ -26,11 +26,11 @@ namespace OCA\Survey_Client\Migration; +use OCA\Survey_Client\BackgroundJobs\AdminNotification; +use OCA\Survey_Client\BackgroundJobs\MonthlyReport; use OCP\BackgroundJob\IJobList; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; -use OCA\Survey_Client\BackgroundJobs\MonthlyReport; -use OCA\Survey_Client\BackgroundJobs\AdminNotification; class SendAdminNotification implements IRepairStep { /** @var IJobList */ diff --git a/lib/Settings/AdminSettings.php b/lib/Settings/AdminSettings.php index b17f4fb5..e8951f8a 100644 --- a/lib/Settings/AdminSettings.php +++ b/lib/Settings/AdminSettings.php @@ -48,10 +48,10 @@ class AdminSettings implements ISettings { private $jobList; public function __construct(Collector $collector, - IConfig $config, - IL10N $l, - IDateTimeFormatter $dateTimeFormatter, - IJobList $jobList + IConfig $config, + IL10N $l, + IDateTimeFormatter $dateTimeFormatter, + IJobList $jobList ) { $this->collector = $collector; $this->config = $config; diff --git a/templates/admin.php b/templates/admin.php index 0fb72a36..1f1f316c 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -56,7 +56,7 @@

+?>