aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorFaraz Samapoor <fsa@adlas.at>2023-06-13 11:10:41 +0330
committerLouis <6653109+artonge@users.noreply.github.com>2023-06-19 12:55:27 +0200
commitcda0f74e0bf32082feca8b49836ae6316ad6c1b2 (patch)
tree1880fa52f57bf4ac5de364331d1d2e86d0c0b14d /core/Command
parentea844ca5fbaacb8b4b68d82b6682fa01a1fa09e0 (diff)
downloadnextcloud-server-cda0f74e0bf32082feca8b49836ae6316ad6c1b2.tar.gz
nextcloud-server-cda0f74e0bf32082feca8b49836ae6316ad6c1b2.zip
Moves single constructor parameters to new lines.
Based on: https://github.com/nextcloud/server/pull/38764#discussion_r1227630895 Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/App/Disable.php4
-rw-r--r--core/Command/App/ListApps.php4
-rw-r--r--core/Command/Background/Base.php4
-rw-r--r--core/Command/Background/ListCommand.php4
-rw-r--r--core/Command/Broadcast/Test.php4
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();
}