Passed
Push — master ( 394266...2a72fb )
by René
15:14
created
templates/goto.tmpl.php 1 patch
Braces   +19 added lines, -7 removed lines patch added patch discarded remove patch
@@ -118,9 +118,12 @@  discard block
 block discarded – undo
118 118
 				<span class="symbol icon-settings"></span>
119 119
 				<?php if (count($comments)) : ?>
120 120
 					<div id="comment-counter" class="badge"><?php p(count($comments)) ?></div>
121
-				<?php else: ?>
121
+				<?php else {
122
+	: ?>
122 123
 					<div id="comment-counter" class="badge no-comments"><?php p(count($comments)) ?></div>
123
-				<?php endif; ?>
124
+				<?php endif;
125
+}
126
+?>
124 127
 			</a>
125 128
 		</div>
126 129
 
@@ -333,7 +336,10 @@  discard block
 block discarded – undo
333 336
 				</div>
334 337
 			<?php if (User::isLoggedIn()) : ?>
335 338
 				<div class="notification">
336
-					<input type="checkbox" id="check_notif" class="checkbox" <?php if ($notification !== null) print_unescaped(' checked'); ?> />
339
+					<input type="checkbox" id="check_notif" class="checkbox" <?php if ($notification !== null) {
340
+	print_unescaped(' checked');
341
+}
342
+?> />
337 343
 					<label for="check_notif"><?php p($l->t('Receive notification email on activity')); ?></label>
338 344
 				</div>
339 345
 			<?php endif; ?>
@@ -431,8 +437,11 @@  discard block
 block discarded – undo
431 437
 						<div class="author"><?php p($userMgr->get($userId)->getDisplayName()) ?></div>
432 438
 					</div>
433 439
 
434
-				<?php else: ?>
435
-					<a href="<?php p($urlGenerator->linkToRouteAbsolute('core.login.showLoginForm')); ?>"><?php p($l->t('Login or ...')); ?></a>
440
+				<?php else {
441
+	: ?>
442
+					<a href="<?php p($urlGenerator->linkToRouteAbsolute('core.login.showLoginForm'));
443
+}
444
+?>"><?php p($l->t('Login or ...')); ?></a>
436 445
 					<div class="authorRow user-cell flex-row">
437 446
 						<div class="avatar has-tooltip" title="?"></div>
438 447
 						<div id="id_ac_detected" class="author  flex-column external">
@@ -453,9 +462,12 @@  discard block
 block discarded – undo
453 462
 
454 463
 				<?php if ($comments == null) : ?>
455 464
 					<li id="no-comments" class="emptycontent">
456
-				<?php else : ?>
465
+				<?php else {
466
+	: ?>
457 467
 					<li id="no-comments" class="emptycontent hidden">
458
-				<?php endif; ?>
468
+				<?php endif;
469
+}
470
+?>
459 471
 
460 472
 						<div class="icon-comment"></div>
461 473
 						<p><?php p($l->t('No comments yet. Be the first.')); ?></p>
Please login to merge, or discard this patch.