Completed
Pull Request — master (#4136)
by Björn
14:16 queued 34s
created
apps/sharebymail/lib/Settings/SettingsManager.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -27,23 +27,23 @@
 block discarded – undo
27 27
 
28 28
 class SettingsManager {
29 29
 
30
-	/** @var IConfig */
31
-	private $config;
32
-
33
-	private $defaultSetting = 'yes';
34
-
35
-	public function __construct(IConfig $config) {
36
-		$this->config = $config;
37
-	}
38
-
39
-	/**
40
-	 * should the password for a mail share be send to the recipient
41
-	 *
42
-	 * @return bool
43
-	 */
44
-	public function sendPasswordByMail() {
45
-		$sendPasswordByMail = $this->config->getAppValue('sharebymail', 'sendpasswordmail', $this->defaultSetting);
46
-		return $sendPasswordByMail === 'yes';
47
-	}
30
+    /** @var IConfig */
31
+    private $config;
32
+
33
+    private $defaultSetting = 'yes';
34
+
35
+    public function __construct(IConfig $config) {
36
+        $this->config = $config;
37
+    }
38
+
39
+    /**
40
+     * should the password for a mail share be send to the recipient
41
+     *
42
+     * @return bool
43
+     */
44
+    public function sendPasswordByMail() {
45
+        $sendPasswordByMail = $this->config->getAppValue('sharebymail', 'sendpasswordmail', $this->defaultSetting);
46
+        return $sendPasswordByMail === 'yes';
47
+    }
48 48
 
49 49
 }
Please login to merge, or discard this patch.
apps/sharebymail/templates/settings-admin.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 	<em><?php p($l->t('Send a personalized link to a file or folder by mail.')); ?></em>
11 11
 
12 12
 	<p>
13
-		<input id="sendPasswordMail" type="checkbox" class="checkbox" <?php if($_['sendPasswordMail']) p('checked'); ?> />
13
+		<input id="sendPasswordMail" type="checkbox" class="checkbox" <?php if ($_['sendPasswordMail']) p('checked'); ?> />
14 14
 		<label for="sendPasswordMail"><?php p($l->t('Send password by mail')); ?></label>
15 15
 	</p>
16 16
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,10 @@
 block discarded – undo
10 10
 	<em><?php p($l->t('Send a personalized link to a file or folder by mail.')); ?></em>
11 11
 
12 12
 	<p>
13
-		<input id="sendPasswordMail" type="checkbox" class="checkbox" <?php if($_['sendPasswordMail']) p('checked'); ?> />
13
+		<input id="sendPasswordMail" type="checkbox" class="checkbox" <?php if($_['sendPasswordMail']) {
14
+    p('checked');
15
+}
16
+?> />
14 17
 		<label for="sendPasswordMail"><?php p($l->t('Send password by mail')); ?></label>
15 18
 	</p>
16 19
 
Please login to merge, or discard this patch.