Passed
Push — master ( b85bdf...84ae07 )
by Blizzz
16:10 queued 14s
created
apps/dav/lib/Settings/CalDAVSettings.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -34,63 +34,63 @@
 block discarded – undo
34 34
 
35 35
 class CalDAVSettings implements IDelegatedSettings {
36 36
 
37
-	/** @var IConfig */
38
-	private $config;
37
+    /** @var IConfig */
38
+    private $config;
39 39
 
40
-	/** @var IInitialState */
41
-	private $initialState;
40
+    /** @var IInitialState */
41
+    private $initialState;
42 42
 
43
-	private IURLGenerator $urlGenerator;
43
+    private IURLGenerator $urlGenerator;
44 44
 
45
-	private const defaults = [
46
-		'sendInvitations' => 'yes',
47
-		'generateBirthdayCalendar' => 'yes',
48
-		'sendEventReminders' => 'yes',
49
-		'sendEventRemindersPush' => 'no',
50
-	];
45
+    private const defaults = [
46
+        'sendInvitations' => 'yes',
47
+        'generateBirthdayCalendar' => 'yes',
48
+        'sendEventReminders' => 'yes',
49
+        'sendEventRemindersPush' => 'no',
50
+    ];
51 51
 
52
-	/**
53
-	 * CalDAVSettings constructor.
54
-	 *
55
-	 * @param IConfig $config
56
-	 * @param IInitialState $initialState
57
-	 */
58
-	public function __construct(IConfig $config, IInitialState $initialState, IURLGenerator $urlGenerator) {
59
-		$this->config = $config;
60
-		$this->initialState = $initialState;
61
-		$this->urlGenerator = $urlGenerator;
62
-	}
52
+    /**
53
+     * CalDAVSettings constructor.
54
+     *
55
+     * @param IConfig $config
56
+     * @param IInitialState $initialState
57
+     */
58
+    public function __construct(IConfig $config, IInitialState $initialState, IURLGenerator $urlGenerator) {
59
+        $this->config = $config;
60
+        $this->initialState = $initialState;
61
+        $this->urlGenerator = $urlGenerator;
62
+    }
63 63
 
64
-	public function getForm(): TemplateResponse {
65
-		$this->initialState->provideInitialState('userSyncCalendarsDocUrl', $this->urlGenerator->linkToDocs('user-sync-calendars'));
66
-		foreach (self::defaults as $key => $default) {
67
-			$value = $this->config->getAppValue(Application::APP_ID, $key, $default);
68
-			$this->initialState->provideInitialState($key, $value === 'yes');
69
-		}
70
-		return new TemplateResponse(Application::APP_ID, 'settings-admin-caldav');
71
-	}
64
+    public function getForm(): TemplateResponse {
65
+        $this->initialState->provideInitialState('userSyncCalendarsDocUrl', $this->urlGenerator->linkToDocs('user-sync-calendars'));
66
+        foreach (self::defaults as $key => $default) {
67
+            $value = $this->config->getAppValue(Application::APP_ID, $key, $default);
68
+            $this->initialState->provideInitialState($key, $value === 'yes');
69
+        }
70
+        return new TemplateResponse(Application::APP_ID, 'settings-admin-caldav');
71
+    }
72 72
 
73
-	/**
74
-	 * @return string
75
-	 */
76
-	public function getSection() {
77
-		return 'groupware';
78
-	}
73
+    /**
74
+     * @return string
75
+     */
76
+    public function getSection() {
77
+        return 'groupware';
78
+    }
79 79
 
80
-	/**
81
-	 * @return int
82
-	 */
83
-	public function getPriority() {
84
-		return 10;
85
-	}
80
+    /**
81
+     * @return int
82
+     */
83
+    public function getPriority() {
84
+        return 10;
85
+    }
86 86
 
87
-	public function getName(): ?string {
88
-		return null; // Only setting in this section
89
-	}
87
+    public function getName(): ?string {
88
+        return null; // Only setting in this section
89
+    }
90 90
 
91
-	public function getAuthorizedAppConfig(): array {
92
-		return [
93
-			'dav' => ['/(' . implode('|', array_keys(self::defaults)) . ')/']
94
-		];
95
-	}
91
+    public function getAuthorizedAppConfig(): array {
92
+        return [
93
+            'dav' => ['/(' . implode('|', array_keys(self::defaults)) . ')/']
94
+        ];
95
+    }
96 96
 }
Please login to merge, or discard this patch.