From 51aae7866c5e6f34132b4e1549368a2466b29b33 Mon Sep 17 00:00:00 2001 From: Faraz Samapoor Date: Tue, 13 Jun 2023 15:41:33 +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/Config/App/DeleteConfig.php | 4 +++- core/Command/Config/App/GetConfig.php | 4 +++- core/Command/Config/App/SetConfig.php | 4 +++- core/Command/Config/Import.php | 4 +++- core/Command/Config/System/Base.php | 4 +++- core/Command/Config/System/DeleteConfig.php | 4 +++- core/Command/Config/System/GetConfig.php | 4 +++- core/Command/Config/System/SetConfig.php | 4 +++- core/Command/Group/Add.php | 4 +++- core/Command/Group/Delete.php | 4 +++- core/Command/Group/Info.php | 4 +++- core/Command/Group/ListCommand.php | 4 +++- 12 files changed, 36 insertions(+), 12 deletions(-) diff --git a/core/Command/Config/App/DeleteConfig.php b/core/Command/Config/App/DeleteConfig.php index 577378559b363..b77f27ccd0733 100644 --- a/core/Command/Config/App/DeleteConfig.php +++ b/core/Command/Config/App/DeleteConfig.php @@ -28,7 +28,9 @@ use Symfony\Component\Console\Output\OutputInterface; class DeleteConfig extends Base { - public function __construct(protected IConfig $config) { + public function __construct( + protected IConfig $config, + ) { parent::__construct(); } diff --git a/core/Command/Config/App/GetConfig.php b/core/Command/Config/App/GetConfig.php index 3ed327fac79e5..96078b63e9062 100644 --- a/core/Command/Config/App/GetConfig.php +++ b/core/Command/Config/App/GetConfig.php @@ -28,7 +28,9 @@ use Symfony\Component\Console\Output\OutputInterface; class GetConfig extends Base { - public function __construct(protected IConfig $config) { + public function __construct( + protected IConfig $config, + ) { parent::__construct(); } diff --git a/core/Command/Config/App/SetConfig.php b/core/Command/Config/App/SetConfig.php index dcc3fd58bf783..99746246b85ac 100644 --- a/core/Command/Config/App/SetConfig.php +++ b/core/Command/Config/App/SetConfig.php @@ -28,7 +28,9 @@ use Symfony\Component\Console\Output\OutputInterface; class SetConfig extends Base { - public function __construct(protected IConfig $config) { + public function __construct( + protected IConfig $config, + ) { parent::__construct(); } diff --git a/core/Command/Config/Import.php b/core/Command/Config/Import.php index 90c92bff489cc..b8431c8c2957a 100644 --- a/core/Command/Config/Import.php +++ b/core/Command/Config/Import.php @@ -36,7 +36,9 @@ class Import extends Command implements CompletionAwareInterface { protected array $validRootKeys = ['system', 'apps']; - public function __construct(protected IConfig $config) { + public function __construct( + protected IConfig $config, + ) { parent::__construct(); } diff --git a/core/Command/Config/System/Base.php b/core/Command/Config/System/Base.php index 0824af8d18c14..09ec456f6a44e 100644 --- a/core/Command/Config/System/Base.php +++ b/core/Command/Config/System/Base.php @@ -26,7 +26,9 @@ use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext; abstract class Base extends \OC\Core\Command\Base { - public function __construct(protected SystemConfig $systemConfig) { + public function __construct( + protected SystemConfig $systemConfig, + ) { parent::__construct(); } diff --git a/core/Command/Config/System/DeleteConfig.php b/core/Command/Config/System/DeleteConfig.php index f4d49ba8f516a..f6650e7d6d357 100644 --- a/core/Command/Config/System/DeleteConfig.php +++ b/core/Command/Config/System/DeleteConfig.php @@ -30,7 +30,9 @@ use Symfony\Component\Console\Output\OutputInterface; class DeleteConfig extends Base { - public function __construct(SystemConfig $systemConfig) { + public function __construct( + SystemConfig $systemConfig, + ) { parent::__construct($systemConfig); } diff --git a/core/Command/Config/System/GetConfig.php b/core/Command/Config/System/GetConfig.php index 01bbf82d5d176..ab5b884fda4de 100644 --- a/core/Command/Config/System/GetConfig.php +++ b/core/Command/Config/System/GetConfig.php @@ -29,7 +29,9 @@ use Symfony\Component\Console\Output\OutputInterface; class GetConfig extends Base { - public function __construct(SystemConfig $systemConfig) { + public function __construct( + SystemConfig $systemConfig, + ) { parent::__construct($systemConfig); } diff --git a/core/Command/Config/System/SetConfig.php b/core/Command/Config/System/SetConfig.php index 01a1999bcf983..ba5265a84d7dd 100644 --- a/core/Command/Config/System/SetConfig.php +++ b/core/Command/Config/System/SetConfig.php @@ -32,7 +32,9 @@ use Symfony\Component\Console\Output\OutputInterface; class SetConfig extends Base { - public function __construct(SystemConfig $systemConfig) { + public function __construct( + SystemConfig $systemConfig, + ) { parent::__construct($systemConfig); } diff --git a/core/Command/Group/Add.php b/core/Command/Group/Add.php index d148e86a1b435..40502762e95d3 100644 --- a/core/Command/Group/Add.php +++ b/core/Command/Group/Add.php @@ -36,7 +36,9 @@ use Symfony\Component\Console\Output\OutputInterface; class Add extends Base { - public function __construct(protected IGroupManager $groupManager) { + public function __construct( + protected IGroupManager $groupManager, + ) { parent::__construct(); } diff --git a/core/Command/Group/Delete.php b/core/Command/Group/Delete.php index ad6c7ce7f2b53..c7cbf0aa0f6cd 100644 --- a/core/Command/Group/Delete.php +++ b/core/Command/Group/Delete.php @@ -35,7 +35,9 @@ use Symfony\Component\Console\Output\OutputInterface; class Delete extends Base { - public function __construct(protected IGroupManager $groupManager) { + public function __construct( + protected IGroupManager $groupManager, + ) { parent::__construct(); } diff --git a/core/Command/Group/Info.php b/core/Command/Group/Info.php index 6d09c2826b85c..1dab56e1a8907 100644 --- a/core/Command/Group/Info.php +++ b/core/Command/Group/Info.php @@ -35,7 +35,9 @@ use Symfony\Component\Console\Output\OutputInterface; class Info extends Base { - public function __construct(protected IGroupManager $groupManager) { + public function __construct( + protected IGroupManager $groupManager, + ) { parent::__construct(); } diff --git a/core/Command/Group/ListCommand.php b/core/Command/Group/ListCommand.php index a2a63d46a18c4..22ce4cb0317e1 100644 --- a/core/Command/Group/ListCommand.php +++ b/core/Command/Group/ListCommand.php @@ -32,7 +32,9 @@ use Symfony\Component\Console\Output\OutputInterface; class ListCommand extends Base { - public function __construct(protected IGroupManager $groupManager) { + public function __construct( + protected IGroupManager $groupManager, + ) { parent::__construct(); }