@@ -32,37 +32,37 @@ |
||
32 | 32 | use OCP\Settings\ISettings; |
33 | 33 | |
34 | 34 | class AvailabilitySettings implements ISettings { |
35 | - protected IConfig $config; |
|
36 | - protected IInitialState $initialState; |
|
37 | - protected ?string $userId; |
|
35 | + protected IConfig $config; |
|
36 | + protected IInitialState $initialState; |
|
37 | + protected ?string $userId; |
|
38 | 38 | |
39 | - public function __construct(IConfig $config, |
|
40 | - IInitialState $initialState, |
|
41 | - ?string $userId) { |
|
42 | - $this->config = $config; |
|
43 | - $this->initialState = $initialState; |
|
44 | - $this->userId = $userId; |
|
45 | - } |
|
39 | + public function __construct(IConfig $config, |
|
40 | + IInitialState $initialState, |
|
41 | + ?string $userId) { |
|
42 | + $this->config = $config; |
|
43 | + $this->initialState = $initialState; |
|
44 | + $this->userId = $userId; |
|
45 | + } |
|
46 | 46 | |
47 | - public function getForm(): TemplateResponse { |
|
48 | - $this->initialState->provideInitialState( |
|
49 | - 'user_status_automation', |
|
50 | - $this->config->getUserValue( |
|
51 | - $this->userId, |
|
52 | - 'dav', |
|
53 | - 'user_status_automation', |
|
54 | - 'no' |
|
55 | - ) |
|
56 | - ); |
|
47 | + public function getForm(): TemplateResponse { |
|
48 | + $this->initialState->provideInitialState( |
|
49 | + 'user_status_automation', |
|
50 | + $this->config->getUserValue( |
|
51 | + $this->userId, |
|
52 | + 'dav', |
|
53 | + 'user_status_automation', |
|
54 | + 'no' |
|
55 | + ) |
|
56 | + ); |
|
57 | 57 | |
58 | - return new TemplateResponse(Application::APP_ID, 'settings-personal-availability'); |
|
59 | - } |
|
58 | + return new TemplateResponse(Application::APP_ID, 'settings-personal-availability'); |
|
59 | + } |
|
60 | 60 | |
61 | - public function getSection(): string { |
|
62 | - return 'availability'; |
|
63 | - } |
|
61 | + public function getSection(): string { |
|
62 | + return 'availability'; |
|
63 | + } |
|
64 | 64 | |
65 | - public function getPriority(): int { |
|
66 | - return 10; |
|
67 | - } |
|
65 | + public function getPriority(): int { |
|
66 | + return 10; |
|
67 | + } |
|
68 | 68 | } |