зеркало из https://github.com/nextcloud/server.git
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>
This commit is contained in:
Родитель
ea844ca5fb
Коммит
cda0f74e0b
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче