Completed
Pull Request — master (#3869)
by Jan-Christoph
17:04
created
settings/templates/personal.php 1 patch
Braces   +22 added lines, -7 removed lines patch added patch discarded remove patch
@@ -31,9 +31,12 @@  discard block
 block discarded – undo
31 31
 			<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
32 32
 				<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>',
33 33
 					[$_['usage'], $_['total_space']]));?>
34
-			<?php else: ?>
34
+			<?php else {
35
+    : ?>
35 36
 				<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)',
36
-					[$_['usage'], $_['total_space'],  $_['usage_relative']]));?>
37
+					[$_['usage'], $_['total_space'],  $_['usage_relative']]));
38
+}
39
+?>
37 40
 			<?php endif ?>
38 41
 		</p>
39 42
 	</div>
@@ -55,8 +58,11 @@  discard block
 block discarded – undo
55 58
 				<div class="hidden button icon-delete svg" id="removeavatar" title="<?php p($l->t('Remove image')); ?>"></div>
56 59
 				<input type="file" name="files[]" id="uploadavatar" class="hiddenuploadfield">
57 60
 				<p><em><?php p($l->t('png or jpg, max. 20 MB')); ?></em></p>
58
-			<?php else: ?>
59
-				<?php p($l->t('Picture provided by original account')); ?>
61
+			<?php else {
62
+    : ?>
63
+				<?php p($l->t('Picture provided by original account'));
64
+}
65
+?>
60 66
 			<?php endif; ?>
61 67
 		</div>
62 68
 
@@ -99,7 +105,10 @@  discard block
 block discarded – undo
99 105
 				<label for="email"><?php p($l->t('Email')); ?></label>
100 106
 				<span class="icon-password"/>
101 107
 			</h2>
102
-			<div class="verify <?php if ($_['email'] === ''  || $_['emailScope'] !== 'public') p('hidden'); ?>">
108
+			<div class="verify <?php if ($_['email'] === ''  || $_['emailScope'] !== 'public') {
109
+    p('hidden');
110
+}
111
+?>">
103 112
 				<img id="verify-email" <?php
104 113
 				switch($_['emailVerification']) {
105 114
 					case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
@@ -165,7 +174,10 @@  discard block
 block discarded – undo
165 174
 				<label for="website"><?php p($l->t('Website')); ?></label>
166 175
 				<span class="icon-password"/>
167 176
 			</h2>
168
-			<div class="verify <?php if ($_['website'] === ''  || $_['websiteScope'] !== 'public') p('hidden'); ?>">
177
+			<div class="verify <?php if ($_['website'] === ''  || $_['websiteScope'] !== 'public') {
178
+    p('hidden');
179
+}
180
+?>">
169 181
 				<img id="verify-website" <?php
170 182
 				switch($_['websiteVerification']) {
171 183
 					case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
@@ -199,7 +211,10 @@  discard block
 block discarded – undo
199 211
 				<label for="twitter"><?php p($l->t('Twitter')); ?></label>
200 212
 				<span class="icon-password"/>
201 213
 			</h2>
202
-			<div class="verify <?php if ($_['twitter'] === ''  || $_['twitterScope'] !== 'public') p('hidden'); ?>">
214
+			<div class="verify <?php if ($_['twitter'] === ''  || $_['twitterScope'] !== 'public') {
215
+    p('hidden');
216
+}
217
+?>">
203 218
 				<img id="verify-twitter" <?php
204 219
 				switch($_['twitterVerification']) {
205 220
 					case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
Please login to merge, or discard this patch.