Completed
Pull Request — master (#13)
by Semih Serhat
01:46
created
lib/Hooks.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,6 @@
 block discarded – undo
81 81
 
82 82
     /**
83 83
      * @param string $uid
84
-     * @param Throttle $throttle
85 84
      */
86 85
     public function failedLoginCallback($uid) {
87 86
         $this->throttle->addFailedLoginAttempt($uid, $this->request->getRemoteAddress());
Please login to merge, or discard this patch.
tests/PasswordValidatorTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 	}
44 44
 
45 45
 	/**
46
-	 * @param array $mockedMethods
46
+	 * @param string[] $mockedMethods
47 47
 	 * @return PasswordValidator | \PHPUnit_Framework_MockObject_MockObject
48 48
 	 */
49 49
 	private function getMockInstance($mockedMethods = []) {
Please login to merge, or discard this patch.
tests/SecurityConfigTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 	}
36 36
 
37 37
 	/**
38
-	 * @param array $mockedMethods
38
+	 * @param string[] $mockedMethods
39 39
 	 * @return SecurityConfig | \PHPUnit_Framework_MockObject_MockObject
40 40
 	 */
41 41
 	private function getMockInstance($mockedMethods = []) {
Please login to merge, or discard this patch.
templates/settings-admin.php 1 patch
Braces   +16 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,10 @@  discard block
 block discarded – undo
26 26
 <div id="brute-force-protection">
27 27
 	<div>
28 28
 		<input type="checkbox" class="checkbox" id="security-brute-force-protection-enabled"
29
-			<?php if ($_['isBruteForceProtectionEnabled']) p("checked");?> >
29
+			<?php if ($_['isBruteForceProtectionEnabled']) {
30
+    p("checked");
31
+}
32
+?> >
30 33
 		<label for="security-brute-force-protection-enabled"><?php p($l->t('Activate Brute Force Protection')) ?></label>
31 34
 	</div>
32 35
 </div>
@@ -41,17 +44,26 @@  discard block
 block discarded – undo
41 44
 	</div>
42 45
 	<div>
43 46
 		<input type="checkbox" class="checkbox" id="security-enforce-upper-lower-case"
44
-			<?php if ($_['isUpperLowerCaseEnforced']) p("checked");?> >
47
+			<?php if ($_['isUpperLowerCaseEnforced']) {
48
+    p("checked");
49
+}
50
+?> >
45 51
 		<label for="security-enforce-upper-lower-case"><?php p($l->t('Enforce at least one upper and one lower case character on passwords')) ?></label>
46 52
 	</div>
47 53
 	<div>
48 54
 		<input type="checkbox" class="checkbox" id="security-enforce-numerical-characters"
49
-			<?php if ($_['isNumericalCharsEnforced']) p("checked");?> >
55
+			<?php if ($_['isNumericalCharsEnforced']) {
56
+    p("checked");
57
+}
58
+?> >
50 59
 		<label for="security-enforce-numerical-characters"><?php p($l->t('Enforce at least one numerical characters on passwords')) ?></label>
51 60
 	</div>
52 61
 	<div>
53 62
 		<input type="checkbox" class="checkbox" id="security-enforce-special-characters"
54
-			<?php if ($_['isSpecialCharsEnforced']) p("checked");?> >
63
+			<?php if ($_['isSpecialCharsEnforced']) {
64
+    p("checked");
65
+}
66
+?> >
55 67
 		<label for="security-enforce-special-characters"><?php p($l->t('Enforce at least one special characters on passwords')) ?></label>
56 68
 	</div>
57 69
 </div>
58 70
\ No newline at end of file
Please login to merge, or discard this patch.
templates/settings-personal.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,11 +29,20 @@
 block discarded – undo
29 29
 	<ul class="pass-info">
30 30
 		<?php print_unescaped(
31 31
 			"<li class='pass-info-element'>". $l->t('be at least 8 characters long ', $_['minPasswordLength']). "</li>");?>
32
-		<?php if ($_['isUpperLowerCaseEnforced']) print_unescaped(
33
-			"<li class='pass-info-element'>". $l->t('contain at least one uppercase letter and at least one lowercase letter '). "</li>");?>
34
-		<?php if ($_['isNumericalCharsEnforced']) print_unescaped(
35
-			"<li class='pass-info-element'>". $l->t('contain at least one numerical character'). "</li>");?>
36
-		<?php if ($_['isSpecialCharsEnforced']) print_unescaped(
37
-			"<li class='pass-info-element'>". $l->t('contain at least one special character'). "</li>");?>
32
+		<?php if ($_['isUpperLowerCaseEnforced']) {
33
+    print_unescaped(
34
+			"<li class='pass-info-element'>". $l->t('contain at least one uppercase letter and at least one lowercase letter '). "</li>");
35
+}
36
+?>
37
+		<?php if ($_['isNumericalCharsEnforced']) {
38
+    print_unescaped(
39
+			"<li class='pass-info-element'>". $l->t('contain at least one numerical character'). "</li>");
40
+}
41
+?>
42
+		<?php if ($_['isSpecialCharsEnforced']) {
43
+    print_unescaped(
44
+			"<li class='pass-info-element'>". $l->t('contain at least one special character'). "</li>");
45
+}
46
+?>
38 47
 	</ul>
39 48
 </div>
Please login to merge, or discard this patch.