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>
pull/38768/head
Faraz Samapoor 11 months ago committed by Louis
parent 3519689d50
commit 51aae7866c

@ -28,7 +28,9 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class DeleteConfig extends Base {
public function __construct(protected IConfig $config) {
public function __construct(
protected IConfig $config,
) {
parent::__construct();
}

@ -28,7 +28,9 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class GetConfig extends Base {
public function __construct(protected IConfig $config) {
public function __construct(
protected IConfig $config,
) {
parent::__construct();
}

@ -28,7 +28,9 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class SetConfig extends Base {
public function __construct(protected IConfig $config) {
public function __construct(
protected IConfig $config,
) {
parent::__construct();
}

@ -36,7 +36,9 @@ use Symfony\Component\Console\Output\OutputInterface;
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();
}

@ -26,7 +26,9 @@ use OC\SystemConfig;
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();
}

@ -30,7 +30,9 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class DeleteConfig extends Base {
public function __construct(SystemConfig $systemConfig) {
public function __construct(
SystemConfig $systemConfig,
) {
parent::__construct($systemConfig);
}

@ -29,7 +29,9 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class GetConfig extends Base {
public function __construct(SystemConfig $systemConfig) {
public function __construct(
SystemConfig $systemConfig,
) {
parent::__construct($systemConfig);
}

@ -32,7 +32,9 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class SetConfig extends Base {
public function __construct(SystemConfig $systemConfig) {
public function __construct(
SystemConfig $systemConfig,
) {
parent::__construct($systemConfig);
}

@ -36,7 +36,9 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class Add extends Base {
public function __construct(protected IGroupManager $groupManager) {
public function __construct(
protected IGroupManager $groupManager,
) {
parent::__construct();
}

@ -35,7 +35,9 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class Delete extends Base {
public function __construct(protected IGroupManager $groupManager) {
public function __construct(
protected IGroupManager $groupManager,
) {
parent::__construct();
}

@ -35,7 +35,9 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class Info extends Base {
public function __construct(protected IGroupManager $groupManager) {
public function __construct(
protected IGroupManager $groupManager,
) {
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 IGroupManager $groupManager) {
public function __construct(
protected IGroupManager $groupManager,
) {
parent::__construct();
}

Loading…
Cancel
Save