Skip to content

Commit

Permalink
Moves single constructor parameters to new lines.
Browse files Browse the repository at this point in the history
Based on:
#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
  • Loading branch information
Faraz Samapoor committed Jun 13, 2023
1 parent a8b660a commit 6b8c73e
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 12 deletions.
4 changes: 3 additions & 1 deletion core/Command/Config/App/DeleteConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Config/App/GetConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Config/App/SetConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Config/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Config/System/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Config/System/DeleteConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Config/System/GetConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Config/System/SetConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Group/Add.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Group/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Group/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Group/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 6b8c73e

Please sign in to comment.