From cda0f74e0bf32082feca8b49836ae6316ad6c1b2 Mon Sep 17 00:00:00 2001 From: Faraz Samapoor Date: Tue, 13 Jun 2023 11:10:41 +0330 Subject: [PATCH] Moves single constructor parameters to new lines. Based on: https://github.com/nextcloud/server/pull/38764#discussion_r1227630895 Signed-off-by: Faraz Samapoor --- core/Command/App/Disable.php | 4 +++- core/Command/App/ListApps.php | 4 +++- core/Command/Background/Base.php | 4 +++- core/Command/Background/ListCommand.php | 4 +++- core/Command/Broadcast/Test.php | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/core/Command/App/Disable.php b/core/Command/App/Disable.php index c31d65d9464..c5abc6c95cf 100644 --- a/core/Command/App/Disable.php +++ b/core/Command/App/Disable.php @@ -35,7 +35,9 @@ use Symfony\Component\Console\Output\OutputInterface; class Disable extends Command implements CompletionAwareInterface { protected int $exitCode = 0; - public function __construct(protected IAppManager $appManager) { + public function __construct( + protected IAppManager $appManager, + ) { parent::__construct(); } diff --git a/core/Command/App/ListApps.php b/core/Command/App/ListApps.php index cb48c2007b0..24856304afc 100644 --- a/core/Command/App/ListApps.php +++ b/core/Command/App/ListApps.php @@ -33,7 +33,9 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class ListApps extends Base { - public function __construct(protected IAppManager $manager) { + public function __construct( + protected IAppManager $manager, + ) { parent::__construct(); } diff --git a/core/Command/Background/Base.php b/core/Command/Background/Base.php index 130db9e79d8..5b2da21af75 100644 --- a/core/Command/Background/Base.php +++ b/core/Command/Background/Base.php @@ -39,7 +39,9 @@ use Symfony\Component\Console\Output\OutputInterface; abstract class Base extends Command { abstract protected function getMode(); - public function __construct(protected IConfig $config) { + public function __construct( + protected IConfig $config, + ) { parent::__construct(); } diff --git a/core/Command/Background/ListCommand.php b/core/Command/Background/ListCommand.php index 6119fb76de9..a7b98a037a8 100644 --- a/core/Command/Background/ListCommand.php +++ b/core/Command/Background/ListCommand.php @@ -32,7 +32,9 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class ListCommand extends Base { - public function __construct(protected IJobList $jobList) { + public function __construct( + protected IJobList $jobList, + ) { parent::__construct(); } diff --git a/core/Command/Broadcast/Test.php b/core/Command/Broadcast/Test.php index 71d7e2cacdb..da450f30ca8 100644 --- a/core/Command/Broadcast/Test.php +++ b/core/Command/Broadcast/Test.php @@ -34,7 +34,9 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class Test extends Command { - public function __construct(private IEventDispatcher $eventDispatcher) { + public function __construct( + private IEventDispatcher $eventDispatcher, + ) { parent::__construct(); }