Passed
Push — master ( 483741...ff0ccc )
by Julius
15:58 queued 12s
created
core/templates/publicshareauth.php 1 patch
Braces   +20 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,9 +9,12 @@  discard block
 block discarded – undo
9 9
 <!-- password prompt form. It should be hidden when we show the email prompt form -->
10 10
 <?php if (!isset($_['identityOk'])): ?>
11 11
 	<form method="post" id="password-input-form">
12
-<?php else: ?>
12
+<?php else {
13
+    : ?>
13 14
 	<form method="post" id="password-input-form" style="display:none;">
14
-<?php endif; ?>
15
+<?php endif;
16
+}
17
+?>
15 18
 	<fieldset class="warning">
16 19
 		<?php if (!isset($_['wrongpw'])): ?>
17 20
 			<div class="warning-info"><?php p($l->t('This share is password-protected')); ?></div>
@@ -37,9 +40,12 @@  discard block
 block discarded – undo
37 40
 <!-- email prompt form. It should initially be hidden -->
38 41
 <?php if (isset($_['identityOk'])): ?>
39 42
 	<form method="post" id="email-input-form">
40
-<?php else: ?>
43
+<?php else {
44
+    : ?>
41 45
 	<form method="post" id="email-input-form" style="display:none;">
42
-<?php endif; ?>
46
+<?php endif;
47
+}
48
+?>
43 49
 	<fieldset class="warning">
44 50
 		<div class="warning-info" id="email-prompt"><?php p($l->t('Please type in your email address to request a temporary password')); ?></div>
45 51
 		 <p>
@@ -52,8 +58,11 @@  discard block
 block discarded – undo
52 58
 		<?php if (isset($_['identityOk'])): ?>
53 59
 			<?php if ($_['identityOk']): ?>
54 60
 				<div class="warning-info" id="identification-success"><?php p($l->t('Password sent!')); ?></div>
55
-			<?php else: ?>
56
-				<div class="warning" id="identification-failure"><?php p($l->t('You are not authorized to request a password for this share')); ?></div>
61
+			<?php else {
62
+    : ?>
63
+				<div class="warning" id="identification-failure"><?php p($l->t('You are not authorized to request a password for this share'));
64
+}
65
+?></div>
57 66
 			<?php endif; ?>
58 67
 		<?php endif; ?>
59 68
 	</fieldset>
@@ -76,8 +85,11 @@  discard block
 block discarded – undo
76 85
 			class="primary"
77 86
 <?php if (isset($_['identityOk'])): ?>
78 87
 			style="display:block;" />
79
-<?php else: ?>
88
+<?php else {
89
+    : ?>
80 90
 			style="display:none;" />
81
-<?php endif; ?>
91
+<?php endif;
92
+}
93
+?>
82 94
 	</fieldset>
83 95
 </form>
Please login to merge, or discard this patch.