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:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
  • Loading branch information
Faraz Samapoor committed Jun 13, 2023
1 parent 6205436 commit 363299f
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 9 deletions.
4 changes: 3 additions & 1 deletion core/Command/Log/File.php
Expand Up @@ -36,7 +36,9 @@
use Symfony\Component\Console\Output\OutputInterface;

class File extends Command implements Completion\CompletionAwareInterface {
public function __construct(protected IConfig $config) {
public function __construct(
protected IConfig $config,
) {
parent::__construct();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Log/Manage.php
Expand Up @@ -39,7 +39,9 @@ class Manage extends Command implements CompletionAwareInterface {
public const DEFAULT_LOG_LEVEL = 2;
public const DEFAULT_TIMEZONE = 'UTC';

public function __construct(protected IConfig $config) {
public function __construct(
protected IConfig $config,
) {
parent::__construct();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Security/ImportCertificate.php
Expand Up @@ -30,7 +30,9 @@
use Symfony\Component\Console\Output\OutputInterface;

class ImportCertificate extends Base {
public function __construct(protected ICertificateManager $certificateManager) {
public function __construct(
protected ICertificateManager $certificateManager,
) {
parent::__construct();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Security/RemoveCertificate.php
Expand Up @@ -30,7 +30,9 @@
use Symfony\Component\Console\Output\OutputInterface;

class RemoveCertificate extends Base {
public function __construct(protected ICertificateManager $certificateManager) {
public function __construct(
protected ICertificateManager $certificateManager,
) {
parent::__construct();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/Security/ResetBruteforceAttempts.php
Expand Up @@ -30,7 +30,9 @@
use Symfony\Component\Console\Output\OutputInterface;

class ResetBruteforceAttempts extends Base {
public function __construct(protected Throttler $throttler) {
public function __construct(
protected Throttler $throttler,
) {
parent::__construct();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/SystemTag/Add.php
Expand Up @@ -31,7 +31,9 @@
use Symfony\Component\Console\Output\OutputInterface;

class Add extends Base {
public function __construct(protected ISystemTagManager $systemTagManager) {
public function __construct(
protected ISystemTagManager $systemTagManager,
) {
parent::__construct();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/SystemTag/Delete.php
Expand Up @@ -30,7 +30,9 @@
use Symfony\Component\Console\Output\OutputInterface;

class Delete extends Base {
public function __construct(protected ISystemTagManager $systemTagManager) {
public function __construct(
protected ISystemTagManager $systemTagManager,
) {
parent::__construct();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/SystemTag/Edit.php
Expand Up @@ -31,7 +31,9 @@
use Symfony\Component\Console\Output\OutputInterface;

class Edit extends Base {
public function __construct(protected ISystemTagManager $systemTagManager) {
public function __construct(
protected ISystemTagManager $systemTagManager,
) {
parent::__construct();
}

Expand Down
4 changes: 3 additions & 1 deletion core/Command/SystemTag/ListCommand.php
Expand Up @@ -30,7 +30,9 @@
use Symfony\Component\Console\Output\OutputInterface;

class ListCommand extends Base {
public function __construct(protected ISystemTagManager $systemTagManager) {
public function __construct(
protected ISystemTagManager $systemTagManager,
) {
parent::__construct();
}

Expand Down

0 comments on commit 363299f

Please sign in to comment.