Completed
Push — master ( c7d925...8ea6b0 )
by Markus
12:07 queued 06:22
created
view/profile/index.php 1 patch
Braces   +20 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,40 +28,52 @@
 block discarded – undo
28 28
 <h3>Questions you have asked: </h3>
29 29
 <?php if (empty($posts)) : ?>
30 30
     <p>You have not made any posts yet.</p>
31
-<?php else : ?>
31
+<?php else {
32
+    : ?>
32 33
     <?php foreach ($posts as $post) : ?>
33 34
         <p>
34 35
             <a href="forum/question/<?= $post->id ?>"><?= $post->title ?></a>
35 36
         </p>
36
-    <?php endforeach; ?>
37
+    <?php endforeach;
38
+}
39
+?>
37 40
 <?php endif; ?>
38 41
 <h3>Answers you have posted: </h3>
39 42
 <?php if (empty($answers)) : ?>
40 43
     <p>You have not posted any answers yet.</p>
41
-<?php else : ?>
44
+<?php else {
45
+    : ?>
42 46
     <?php foreach ($answers as $answer) : ?>
43 47
         <p>
44 48
             <a href="forum/question/<?= $answer->questionId ?>"><?= $filter->doFilter($answer->content, "markdown") ?></a>
45 49
         </p>
46
-    <?php endforeach; ?>
50
+    <?php endforeach;
51
+}
52
+?>
47 53
 <?php endif; ?>
48 54
 <h3>Comments you have posted: </h3>
49 55
 <?php if (empty($comments)) : ?>
50 56
     <p>You have not posted any comments yet.</p>
51
-<?php else : ?>
57
+<?php else {
58
+    : ?>
52 59
     <?php foreach ($comments as $comment) : ?>
53 60
         <p>
54 61
             <a href="forum/question/<?= $answer->questionId ?>"><?= $filter->doFilter($comment->content, "markdown") ?></a>
55 62
         </p>
56
-    <?php endforeach; ?>
63
+    <?php endforeach;
64
+}
65
+?>
57 66
 <?php endif; ?>
58 67
 <h3>Comments on answers you have posted: </h3>
59 68
 <?php if (empty($anscomments)) : ?>
60 69
     <p>You have not made any comments on answers yet.</p>
61
-<?php else : ?>
70
+<?php else {
71
+    : ?>
62 72
     <?php foreach ($anscomments as $anscomment) : ?>
63 73
         <p>
64 74
             <a href="forum/question/<?= $answer->questionId ?>"><?= $filter->doFilter($anscomment->content, "markdown") ?></a>
65 75
         </p>
66
-    <?php endforeach; ?>
76
+    <?php endforeach;
77
+}
78
+?>
67 79
 <?php endif; ?>
Please login to merge, or discard this patch.
view/profile/specific.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,33 +23,42 @@
 block discarded – undo
23 23
 <h3>Questions asked: </h3>
24 24
 <?php if (empty($questions)) : ?>
25 25
     <p>This user hasen't posted any questions yet.</p>
26
-<?php else : ?>
26
+<?php else {
27
+    : ?>
27 28
     <?php foreach ($questions as $question) : ?>
28 29
         <p>
29 30
             <a href="../../forum/question/<?= $question->id ?>"><?= $filter->doFilter($question->title, "markdown") ?></a>
30 31
         </p>
31
-    <?php endforeach; ?>
32
+    <?php endforeach;
33
+}
34
+?>
32 35
 <?php endif; ?>
33 36
 <h3>Answers posted: </h3>
34 37
 <?php if (empty($answers)) : ?>
35 38
     <p>This user hasn't posted any answers yet.</p>
36
-<?php else : ?>
39
+<?php else {
40
+    : ?>
37 41
     <?php foreach ($answers as $answer) : ?>
38 42
         <p>
39 43
             <a href="../../forum/question/<?= $answer->questionId ?>"><?= $filter->doFilter($answer->content, "markdown") ?></a>
40 44
         </p>
41
-    <?php endforeach; ?>
45
+    <?php endforeach;
46
+}
47
+?>
42 48
 <?php endif; ?>
43 49
 <?php if (empty($comments)) : ?>
44 50
     <h3>Comments this user have posted: </h3>
45 51
     <p>This user have not posted any comments yet.</p>
46
-<?php else : ?>
52
+<?php else {
53
+    : ?>
47 54
     <h3>Comments you have posted: </h3>
48 55
     <?php foreach ($comments as $comment) : ?>
49 56
         <p>
50 57
             <a href="../../forum/question/<?= $answer->questionId ?>"><?= $filter->doFilter($comment->content, "markdown") ?></a>
51 58
         </p>
52
-    <?php endforeach; ?>
59
+    <?php endforeach;
60
+}
61
+?>
53 62
 <?php endif; ?>
54 63
 <h3>Comments on answers you have posted: </h3>
55 64
 <?php foreach ($anscomments as $anscomment) : ?>
Please login to merge, or discard this patch.