Completed
Push — master ( 672e4f...e22914 )
by Maxence
21:09 queued 14s
created
core/templates/twofactorshowchallenge.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,11 @@
 block discarded – undo
16 16
 	<?php if ($error): ?>
17 17
 			<?php if ($error_message): ?>
18 18
 				<p><strong><?php p($error_message); ?></strong></p>
19
-			<?php else: ?>
20
-				<p><strong><?php p($l->t('Error while validating your second factor')); ?></strong></p>
19
+			<?php else {
20
+    : ?>
21
+				<p><strong><?php p($l->t('Error while validating your second factor'));
22
+}
23
+?></strong></p>
21 24
 			<?php endif; ?>
22 25
 	<?php endif; ?>
23 26
 	<?php print_unescaped($template); ?>
Please login to merge, or discard this patch.
core/templates/publicshareauth.php 1 patch
Braces   +20 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,9 +10,12 @@  discard block
 block discarded – undo
10 10
 	<!-- password prompt form. It should be hidden when we show the email prompt form -->
11 11
 	<?php if (!isset($_['identityOk'])): ?>
12 12
 		<form method="post" id="password-input-form">
13
-	<?php else: ?>
13
+	<?php else {
14
+    : ?>
14 15
 		<form method="post" id="password-input-form" style="display:none;">
15
-	<?php endif; ?>
16
+	<?php endif;
17
+}
18
+?>
16 19
 		<fieldset class="warning">
17 20
 			<?php if (!isset($_['wrongpw'])): ?>
18 21
 				<div class="warning-info"><?php p($l->t('This share is password-protected')); ?></div>
@@ -38,9 +41,12 @@  discard block
 block discarded – undo
38 41
 	<!-- email prompt form. It should initially be hidden -->
39 42
 	<?php if (isset($_['identityOk'])): ?>
40 43
 		<form method="post" id="email-input-form">
41
-	<?php else: ?>
44
+	<?php else {
45
+    : ?>
42 46
 		<form method="post" id="email-input-form" style="display:none;">
43
-	<?php endif; ?>
47
+	<?php endif;
48
+}
49
+?>
44 50
 		<fieldset class="warning">
45 51
 			<div class="warning-info" id="email-prompt"><?php p($l->t('Please type in your email address to request a temporary password')); ?></div>
46 52
 			 <p>
@@ -53,8 +59,11 @@  discard block
 block discarded – undo
53 59
 			<?php if (isset($_['identityOk'])): ?>
54 60
 				<?php if ($_['identityOk']): ?>
55 61
 					<div class="warning-info" id="identification-success"><?php p($l->t('Password sent!')); ?></div>
56
-				<?php else: ?>
57
-					<div class="warning" id="identification-failure"><?php p($l->t('You are not authorized to request a password for this share')); ?></div>
62
+				<?php else {
63
+    : ?>
64
+					<div class="warning" id="identification-failure"><?php p($l->t('You are not authorized to request a password for this share'));
65
+}
66
+?></div>
58 67
 				<?php endif; ?>
59 68
 			<?php endif; ?>
60 69
 		</fieldset>
@@ -73,9 +82,12 @@  discard block
 block discarded – undo
73 82
 				id="request-password-back-button"
74 83
 	<?php if (isset($_['identityOk'])): ?>
75 84
 				style="display:block;">
76
-	<?php else: ?>
85
+	<?php else {
86
+    : ?>
77 87
 				style="display:none;">
78
-	<?php endif; ?>
88
+	<?php endif;
89
+}
90
+?>
79 91
 				<?php p($l->t('Back')); ?></a>
80 92
 		</fieldset>
81 93
 	</form>
Please login to merge, or discard this patch.
apps/settings/templates/settings/personal/personal.info.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,11 +53,14 @@
 block discarded – undo
53 53
 		<div class="personal-settings-setting-box personal-settings-setting-box-detail">
54 54
 			<div id="vue-details-section"></div>
55 55
 		</div>
56
-	<?php else: ?>
56
+	<?php else {
57
+    : ?>
57 58
 		<div class="personal-settings-setting-box personal-settings-setting-box-detail--without-profile">
58 59
 			<div id="vue-details-section"></div>
59 60
 		</div>
60
-	<?php endif; ?>
61
+	<?php endif;
62
+}
63
+?>
61 64
 	<div class="personal-settings-setting-box">
62 65
 		<div id="vue-displayname-section"></div>
63 66
 	</div>
Please login to merge, or discard this patch.
apps/files_sharing/templates/public.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,8 @@  discard block
 block discarded – undo
59 59
 		<div id="preview">
60 60
 			<?php if (isset($_['folder'])): ?>
61 61
 				<?php print_unescaped($_['folder']); ?>
62
-			<?php else: ?>
62
+			<?php else {
63
+    : ?>
63 64
 				<!-- preview frame to open file in with viewer -->
64 65
 				<div id="imgframe"></div>
65 66
 				<?php if (isset($_['mimetype']) && str_starts_with($_['mimetype'], 'image')): ?>
@@ -68,7 +69,9 @@  discard block
 block discarded – undo
68 69
 							<?php p($_['filename'])?> (<?php p($_['fileSize']) ?>)
69 70
 						</div>
70 71
 						<?php if (!$_['hideDownload']) { ?>
71
-							<a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button">
72
+							<a href="<?php p($_['downloadURL']);
73
+}
74
+?>" id="downloadFile" class="button">
72 75
 								<span class="icon icon-download"></span>
73 76
 								<?php p($l->t('Download'))?>
74 77
 							</a>
Please login to merge, or discard this patch.
apps/settings/templates/help.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,12 +55,15 @@
 block discarded – undo
55 55
 		<iframe src="<?php print_unescaped($_['url']); ?>" class="help-iframe" tabindex="0">
56 56
 		</iframe>
57 57
 	</div>
58
-<?php else: ?>
58
+<?php else {
59
+    : ?>
59 60
 	<div id="app-content">
60 61
 		<div class="help-wrapper">
61 62
 			<div class="help-content">
62 63
 				<h2 class="help-content__heading">
63
-					<?php p($l->t('Nextcloud help & privacy resources')); ?>
64
+					<?php p($l->t('Nextcloud help & privacy resources'));
65
+}
66
+?>
64 67
 				</h2>
65 68
 				<div class="help-content__body">
66 69
 				<a class="button" target="_blank" rel="noreferrer noopener"
Please login to merge, or discard this patch.
apps/encryption/templates/settings-admin.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,11 +14,13 @@
 block discarded – undo
14 14
 	<h3><?php p($l->t('Default encryption module')); ?></h3>
15 15
 	<?php if (!$_['initStatus'] && $_['masterKeyEnabled'] === false): ?>
16 16
 		<?php p($l->t('Encryption app is enabled but your keys are not initialized, please log-out and log-in again')); ?>
17
-	<?php else: ?>
17
+	<?php else {
18
+    : ?>
18 19
 		<p id="encryptHomeStorageSetting">
19 20
 			<input type="checkbox" class="checkbox" name="encrypt_home_storage" id="encryptHomeStorage"
20 21
 				   value="1" <?php if ($_['encryptHomeStorage']) {
21 22
 				   	print_unescaped('checked="checked"');
23
+}
22 24
 				   } ?> />
23 25
 			<label for="encryptHomeStorage"><?php p($l->t('Encrypt the home storage'));?></label></br>
24 26
 			<em><?php p($l->t('Enabling this option encrypts all files stored on the main storage, otherwise only files on external storage will be encrypted')); ?></em>
Please login to merge, or discard this patch.
apps/profile/templates/404-profile.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,10 +18,13 @@
 block discarded – undo
18 18
 ?>
19 19
 <?php if (isset($_['content'])) : ?>
20 20
 	<?php print_unescaped($_['content']) ?>
21
-<?php else : ?>
21
+<?php else {
22
+    : ?>
22 23
 	<div class="body-login-container update">
23 24
 		<div class="icon-big icon-error"></div>
24
-		<h2><?php p($l->t('Profile not found')); ?></h2>
25
+		<h2><?php p($l->t('Profile not found'));
26
+}
27
+?></h2>
25 28
 		<p class="infogroup"><?php p($l->t('The profile does not exist.')); ?></p>
26 29
 		<p><a class="button primary" href="<?php p(\OCP\Server::get(\OCP\IURLGenerator::class)->linkTo('', 'index.php')) ?>">
27 30
 				<?php p($l->t('Back to %s', [$theme->getName()])); ?>
Please login to merge, or discard this patch.
apps/files_external/templates/settings.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -209,8 +209,11 @@
 block discarded – undo
209 209
 		foreach ($userBackends as $backend): ?>
210 210
 				<?php if ($deprecateTo = $backend->getDeprecateTo()): ?>
211 211
 					<input type="hidden" id="allowUserMountingBackends<?php p($i); ?>" name="allowUserMountingBackends[]" value="<?php p($backend->getIdentifier()); ?>" data-deprecate-to="<?php p($deprecateTo->getIdentifier()); ?>" />
212
-				<?php else: ?>
213
-					<input type="checkbox" id="allowUserMountingBackends<?php p($i); ?>" class="checkbox" name="allowUserMountingBackends[]" value="<?php p($backend->getIdentifier()); ?>" <?php if ($backend->isVisibleFor(BackendService::VISIBILITY_PERSONAL)) {
212
+				<?php else {
213
+    : ?>
214
+					<input type="checkbox" id="allowUserMountingBackends<?php p($i);
215
+}
216
+?>" class="checkbox" name="allowUserMountingBackends[]" value="<?php p($backend->getIdentifier()); ?>" <?php if ($backend->isVisibleFor(BackendService::VISIBILITY_PERSONAL)) {
214 217
 						print_unescaped(' checked="checked"');
215 218
 					} ?> />
216 219
 					<label for="allowUserMountingBackends<?php p($i); ?>"><?php p($backend->getText()); ?></label> <br />
Please login to merge, or discard this patch.
core/templates/layout.public.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,9 +54,12 @@
 block discarded – undo
54 54
 					   aria-label="<?php p($l->t('Go to %s', [$_['logoUrl']])); ?>">
55 55
 						<div class="logo logo-icon"></div>
56 56
 					</a>
57
-				<?php else: ?>
57
+				<?php else {
58
+    : ?>
58 59
 					<div class="logo logo-icon"></div>
59
-				<?php endif; ?>
60
+				<?php endif;
61
+}
62
+?>
60 63
 
61 64
 				<div class="header-info">
62 65
 					<span class="header-title">
Please login to merge, or discard this patch.