Passed
Push — master ( ce082d...c663cb )
by Daniel
14:32 queued 10s
created
apps/sharebymail/lib/Settings/SettingsManager.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -31,46 +31,46 @@
 block discarded – undo
31 31
 
32 32
 class SettingsManager {
33 33
 
34
-	/** @var IConfig */
35
-	private $config;
34
+    /** @var IConfig */
35
+    private $config;
36 36
 
37
-	private $sendPasswordByMailDefault = 'yes';
37
+    private $sendPasswordByMailDefault = 'yes';
38 38
 
39
-	private $enforcePasswordProtectionDefault = 'no';
39
+    private $enforcePasswordProtectionDefault = 'no';
40 40
 
41
-	private $replyToInitiatorDefault = 'yes';
41
+    private $replyToInitiatorDefault = 'yes';
42 42
 
43
-	public function __construct(IConfig $config) {
44
-		$this->config = $config;
45
-	}
43
+    public function __construct(IConfig $config) {
44
+        $this->config = $config;
45
+    }
46 46
 
47
-	/**
48
-	 * should the password for a mail share be send to the recipient
49
-	 *
50
-	 * @return bool
51
-	 */
52
-	public function sendPasswordByMail(): bool {
53
-		$sendPasswordByMail = $this->config->getAppValue('sharebymail', 'sendpasswordmail', $this->sendPasswordByMailDefault);
54
-		return $sendPasswordByMail === 'yes';
55
-	}
47
+    /**
48
+     * should the password for a mail share be send to the recipient
49
+     *
50
+     * @return bool
51
+     */
52
+    public function sendPasswordByMail(): bool {
53
+        $sendPasswordByMail = $this->config->getAppValue('sharebymail', 'sendpasswordmail', $this->sendPasswordByMailDefault);
54
+        return $sendPasswordByMail === 'yes';
55
+    }
56 56
 
57
-	/**
58
-	 * do we require a share by mail to be password protected
59
-	 *
60
-	 * @return bool
61
-	 */
62
-	public function enforcePasswordProtection(): bool {
63
-		$enforcePassword = $this->config->getAppValue('sharebymail', 'enforcePasswordProtection', $this->enforcePasswordProtectionDefault);
64
-		return $enforcePassword === 'yes';
65
-	}
57
+    /**
58
+     * do we require a share by mail to be password protected
59
+     *
60
+     * @return bool
61
+     */
62
+    public function enforcePasswordProtection(): bool {
63
+        $enforcePassword = $this->config->getAppValue('sharebymail', 'enforcePasswordProtection', $this->enforcePasswordProtectionDefault);
64
+        return $enforcePassword === 'yes';
65
+    }
66 66
 
67
-	/**
68
-	 * should add reply to with initiator mail
69
-	 *
70
-	 * @return bool
71
-	 */
72
-	public function replyToInitiator(): bool {
73
-		$replyToInitiator = $this->config->getAppValue('sharebymail', 'replyToInitiator', $this->replyToInitiatorDefault);
74
-		return $replyToInitiator === 'yes';
75
-	}
67
+    /**
68
+     * should add reply to with initiator mail
69
+     *
70
+     * @return bool
71
+     */
72
+    public function replyToInitiator(): bool {
73
+        $replyToInitiator = $this->config->getAppValue('sharebymail', 'replyToInitiator', $this->replyToInitiatorDefault);
74
+        return $replyToInitiator === 'yes';
75
+    }
76 76
 }
Please login to merge, or discard this patch.