Completed
Push — master ( e4de0d...f99e79 )
by Thomas
11s
created
tests/SecurityConfigTest.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
  */
21 21
 namespace OCA\Security\Tests;
22 22
 
23
-use OCA\Security\SecurityConfig;
24
-use OCP\IConfig;
23
+use OCA\Security\SecurityConfig;
24
+use OCP\IConfig;
25 25
 use Test\TestCase;
26 26
 class SecurityConfigTest extends TestCase {
27 27
     /** @var  IConfig|\PHPUnit_Framework_MockObject_MockObject */
Please login to merge, or discard this patch.
templates/settings-admin.php 1 patch
Braces   +12 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,17 +46,26 @@
 block discarded – undo
46 46
 	</div>
47 47
 	<div>
48 48
 		<input type="checkbox" class="checkbox" id="security-enforce-upper-lower-case"
49
-			<?php if ($_['isUpperLowerCaseEnforced']) p("checked");?> >
49
+			<?php if ($_['isUpperLowerCaseEnforced']) {
50
+    p("checked");
51
+}
52
+?> >
50 53
 		<label for="security-enforce-upper-lower-case"><?php p($l->t('Enforce at least one upper and one lower case character on passwords')) ?></label>
51 54
 	</div>
52 55
 	<div>
53 56
 		<input type="checkbox" class="checkbox" id="security-enforce-numerical-characters"
54
-			<?php if ($_['isNumericalCharsEnforced']) p("checked");?> >
57
+			<?php if ($_['isNumericalCharsEnforced']) {
58
+    p("checked");
59
+}
60
+?> >
55 61
 		<label for="security-enforce-numerical-characters"><?php p($l->t('Enforce at least one numerical characters on passwords')) ?></label>
56 62
 	</div>
57 63
 	<div>
58 64
 		<input type="checkbox" class="checkbox" id="security-enforce-special-characters"
59
-			<?php if ($_['isSpecialCharsEnforced']) p("checked");?> >
65
+			<?php if ($_['isSpecialCharsEnforced']) {
66
+    p("checked");
67
+}
68
+?> >
60 69
 		<label for="security-enforce-special-characters"><?php p($l->t('Enforce at least one special characters on passwords')) ?></label>
61 70
 	</div>
62 71
 </div>
63 72
\ 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 %s 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.