Skip to content

Commit 198cf4b

Browse files
committed
fix: psalm issues about override
Signed-off-by: Vitor Mattos <[email protected]>
1 parent 7ef1ac2 commit 198cf4b

File tree

85 files changed

+192
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+192
-0
lines changed

lib/Activity/Filter.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,32 @@ public function __construct(
2828
$this->url = $url;
2929
}
3030

31+
#[\Override]
3132
public function getIdentifier() {
3233
return Application::APP_ID;
3334
}
3435

36+
#[\Override]
3537
public function getName() {
3638
return 'LibreSign';
3739
}
3840

41+
#[\Override]
3942
public function getPriority() {
4043
return 31;
4144
}
4245

46+
#[\Override]
4347
public function getIcon() {
4448
return $this->url->getAbsoluteURL($this->url->imagePath('libresign', 'app-dark.svg'));
4549
}
4650

51+
#[\Override]
4752
public function filterTypes(array $types) {
4853
return array_intersect(self::ALLOWED_TYPES, $types);
4954
}
5055

56+
#[\Override]
5157
public function allowedApps() {
5258
return [
5359
Application::APP_ID,

lib/Activity/Listener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public function __construct(
4141
) {
4242
}
4343

44+
#[\Override]
4445
public function handle(Event $event): void {
4546
/** @var SendSignNotificationEvent|SignedEvent $event */
4647
match ($event::class) {

lib/Activity/Provider/SignRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function __construct(
2828
) {
2929
}
3030

31+
#[\Override]
3132
public function parse($language, IEvent $event, ?IEvent $previousEvent = null): IEvent {
3233
if ($event->getApp() !== Application::APP_ID) {
3334
throw new UnknownActivityException('app');

lib/Activity/Provider/Signed.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function __construct(
2828
) {
2929
}
3030

31+
#[\Override]
3132
public function parse($language, IEvent $event, ?IEvent $previousEvent = null): IEvent {
3233
if ($event->getApp() !== Application::APP_ID) {
3334
throw new UnknownActivityException('app');

lib/Activity/Settings/FileSigned.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,31 @@ public function __construct(
2626
/**
2727
* {@inheritdoc}
2828
*/
29+
#[\Override]
2930
public function getIdentifier(): string {
3031
return SignedEvent::FILE_SIGNED;
3132
}
3233

3334
/**
3435
* {@inheritdoc}
3536
*/
37+
#[\Override]
3638
public function getName(): string {
3739
return $this->l->t('A document has been <strong>signed</strong>');
3840
}
3941

4042
/**
4143
* {@inheritdoc}
4244
*/
45+
#[\Override]
4346
public function getPriority(): int {
4447
return 52;
4548
}
4649

4750
/**
4851
* {@inheritdoc}
4952
*/
53+
#[\Override]
5054
public function canChangeNotification(): bool {
5155
if (!$this->userSession->getUser() instanceof IUser) {
5256
return true;
@@ -62,6 +66,7 @@ public function canChangeNotification(): bool {
6266
/**
6367
* {@inheritdoc}
6468
*/
69+
#[\Override]
6570
public function canChangeMail() {
6671
if (!$this->userSession->getUser() instanceof IUser) {
6772
return true;

lib/Activity/Settings/FileToSign.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function __construct(
2121
* @return string Lowercase a-z and underscore only identifier. The type of table activity
2222
* @since 20.0.0
2323
*/
24+
#[\Override]
2425
public function getIdentifier(): string {
2526
return SendSignNotificationEvent::FILE_TO_SIGN;
2627
}
@@ -29,6 +30,7 @@ public function getIdentifier(): string {
2930
* @return string A translated string
3031
* @since 11.0.0
3132
*/
33+
#[\Override]
3234
public function getName(): string {
3335
return $this->l->t('You have a <strong>file to sign</strong>');
3436
}

lib/Activity/Settings/LibresignActivitySettings.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,44 +15,51 @@ abstract class LibresignActivitySettings extends ActivitySettings {
1515
/**
1616
* {@inheritdoc}
1717
*/
18+
#[\Override]
1819
public function getGroupIdentifier() {
1920
return 'libresign';
2021
}
2122

2223
/**
2324
* {@inheritdoc}
2425
*/
26+
#[\Override]
2527
public function getGroupName() {
2628
return 'LibreSign';
2729
}
2830

2931
/**
3032
* {@inheritdoc}
3133
*/
34+
#[\Override]
3235
public function getPriority(): int {
3336
return 51;
3437
}
3538
/**
3639
* {@inheritdoc}
3740
*/
41+
#[\Override]
3842
public function canChangeNotification(): bool {
3943
return true;
4044
}
4145
/**
4246
* {@inheritdoc}
4347
*/
48+
#[\Override]
4449
public function canChangeMail() {
4550
return true;
4651
}
4752
/**
4853
* {@inheritdoc}
4954
*/
55+
#[\Override]
5056
public function isDefaultEnabledMail() {
5157
return true;
5258
}
5359
/**
5460
* {@inheritdoc}
5561
*/
62+
#[\Override]
5663
public function isDefaultEnabledNotification(): bool {
5764
return true;
5865
}

lib/AppInfo/Application.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function __construct() {
4545
parent::__construct(self::APP_ID);
4646
}
4747

48+
#[\Override]
4849
public function boot(IBootContext $context): void {
4950
$server = $context->getServerContainer();
5051

@@ -54,6 +55,7 @@ public function boot(IBootContext $context): void {
5455
FilesTemplateLoader::register($dispatcher);
5556
}
5657

58+
#[\Override]
5759
public function register(IRegistrationContext $context): void {
5860
$context->registerMiddleWare(GlobalInjectionMiddleware::class, true);
5961
$context->registerMiddleWare(InjectionMiddleware::class);

lib/BackgroundJob/Reminder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function __construct(
2828
/**
2929
* @inheritDoc
3030
*/
31+
#[\Override]
3132
public function run($argument): void {
3233
$this->reminderService->sendReminders();
3334
}

lib/BackgroundJob/UserDeleted.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function __construct(
3030
/**
3131
* @param array $argument
3232
*/
33+
#[\Override]
3334
public function run($argument): void {
3435
if (!isset($argument['user_id'])) {
3536
return;

0 commit comments

Comments
 (0)