Skip to content

Commit

Permalink
chore: 7.4 fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Jan 15, 2025
1 parent acee329 commit 2457ab4
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 17 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
->notPath('src')
->notPath('tests/configs')
->notPath('vendor')
->notPath('vendor-bin')
->in(__DIR__);
return $config;
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"scripts": {
"cs:fix": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './tests/*' -print0 | xargs -0 -n1 php -l",
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './tests/*' -print0 | xargs -0 -n1 php -l",
"psalm": "psalm",
"test:unit": "phpunit -c tests/phpunit.xml --fail-on-warning",
"post-install-cmd": [
Expand Down
2 changes: 1 addition & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function attachHooks(
IEventDispatcher $eventDispatcher,
Listener $listener,
IManager $activityManager,
\OCP\Notification\IManager $notificationManager,
\OCP\Notification\IManager $notificationManager
): void {
$eventDispatcher->addServiceListener(AddContentSecurityPolicyEvent::class, CSPListener::class);

Expand Down
4 changes: 1 addition & 3 deletions lib/Command/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
class Log extends Command {
private $queue;

public function __construct(
IQueue $queue,
) {
public function __construct(IQueue $queue) {
parent::__construct();
$this->queue = $queue;
}
Expand Down
4 changes: 1 addition & 3 deletions lib/Command/Metrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
class Metrics extends Command {
private $queue;

public function __construct(
IQueue $queue,
) {
public function __construct(IQueue $queue) {
parent::__construct();
$this->queue = $queue;
}
Expand Down
4 changes: 1 addition & 3 deletions lib/Command/Reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
class Reset extends Command {
private $queue;

public function __construct(
IQueue $queue,
) {
public function __construct(IQueue $queue) {
parent::__construct();
$this->queue = $queue;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/SelfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SelfTest extends Command {

public function __construct(
\OCA\NotifyPush\SelfTest $test,
IConfig $config,
IConfig $config
) {
parent::__construct();
$this->test = $test;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Setup extends Command {
public function __construct(
\OCA\NotifyPush\SelfTest $test,
IConfig $config,
SetupWizard $setupWizard,
SetupWizard $setupWizard
) {
parent::__construct();
$this->test = $test;
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(
IRequest $request,
IQueue $queue,
ISecureRandom $random,
IUserSession $userSession,
IUserSession $userSession
) {
parent::__construct('notify_push', $request);
$this->queue = $queue;
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/TestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
IRequest $request,
IConfig $config,
IQueue $queue,
IAppManager $appManager,
IAppManager $appManager
) {
parent::__construct('notify_push', $request);
$this->config = $config;
Expand Down
2 changes: 1 addition & 1 deletion lib/SelfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(
IConfig $config,
IQueue $queue,
IDBConnection $connection,
IAppManager $appManager,
IAppManager $appManager
) {
$this->client = $clientService->newClient();
$this->cookie = rand(1, (int)pow(2, 30));
Expand Down
2 changes: 1 addition & 1 deletion lib/SetupWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
SelfTest $test,
IClientService $clientService,
IConfig $config,
BinaryFinder $binaryFinder,
BinaryFinder $binaryFinder
) {
$this->queue = $queue;
$this->test = $test;
Expand Down

0 comments on commit 2457ab4

Please sign in to comment.