Skip to content

Commit fff9afe

Browse files
chore: Adjustment in class naming and group names
Signed-off-by: Samuelson Brito <samuelsonma@gmail.com>
1 parent 5ed3881 commit fff9afe

File tree

3 files changed

+61
-61
lines changed

3 files changed

+61
-61
lines changed

lib/Activity/Settings/FileToSign.php

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
declare(strict_types=1);
44
/**
5-
* SPDX-FileCopyrightText: 2020-2025 LibreCode coop and contributors
5+
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
66
* SPDX-License-Identifier: AGPL-3.0-or-later
77
*/
88

99
namespace OCA\Libresign\Activity\Settings;
1010

1111
use OCP\IL10N;
1212

13-
class FileToSign extends SignActivitySettings {
13+
class FileToSign extends LibresignActivitySettings {
1414
public function __construct(
1515
protected IL10N $l,
1616
) {
@@ -31,35 +31,4 @@ public function getIdentifier(): string {
3131
public function getName(): string {
3232
return $this->l->t('You have a <strong>file to sign</strong>');
3333
}
34-
35-
/**
36-
* {@inheritdoc}
37-
*/
38-
public function getPriority(): int {
39-
return 51;
40-
}
41-
/**
42-
* {@inheritdoc}
43-
*/
44-
public function canChangeNotification(): bool {
45-
return true;
46-
}
47-
/**
48-
* {@inheritdoc}
49-
*/
50-
public function canChangeMail() {
51-
return true;
52-
}
53-
/**
54-
* {@inheritdoc}
55-
*/
56-
public function isDefaultEnabledMail() {
57-
return true;
58-
}
59-
/**
60-
* {@inheritdoc}
61-
*/
62-
public function isDefaultEnabledNotification(): bool {
63-
return true;
64-
}
6534
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
namespace OCA\Libresign\Activity\Settings;
10+
11+
use OCP\Activity\ActivitySettings;
12+
13+
abstract class LibresignActivitySettings extends ActivitySettings {
14+
15+
/**
16+
* {@inheritdoc}
17+
*/
18+
public function getGroupIdentifier() {
19+
return 'libresign';
20+
}
21+
22+
/**
23+
* {@inheritdoc}
24+
*/
25+
public function getGroupName() {
26+
return 'LibreSign';
27+
}
28+
29+
/**
30+
* {@inheritdoc}
31+
*/
32+
public function getPriority(): int {
33+
return 51;
34+
}
35+
/**
36+
* {@inheritdoc}
37+
*/
38+
public function canChangeNotification(): bool {
39+
return true;
40+
}
41+
/**
42+
* {@inheritdoc}
43+
*/
44+
public function canChangeMail() {
45+
return true;
46+
}
47+
/**
48+
* {@inheritdoc}
49+
*/
50+
public function isDefaultEnabledMail() {
51+
return true;
52+
}
53+
/**
54+
* {@inheritdoc}
55+
*/
56+
public function isDefaultEnabledNotification(): bool {
57+
return true;
58+
}
59+
}

lib/Activity/Settings/SignActivitySettings.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)