Test Setup Failed
Push — master ( 5e3d65...94fd44 )
by Markus
02:53 queued 38s
created
view/profile/specific.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,20 +20,26 @@
 block discarded – undo
20 20
 <h3>Questions asked: </h3>
21 21
 <?php if (empty($questions)) : ?>
22 22
     <p>This user hasen't posted any questions yet.</p>
23
-<?php else : ?>
23
+<?php else {
24
+    : ?>
24 25
     <?php foreach ($questions as $question) : ?>
25 26
         <p>
26 27
             <a href="../../forum/question/<?= $question->id ?>"><?= $question->title ?></a>
27 28
         </p>
28
-    <?php endforeach; ?>
29
+    <?php endforeach;
30
+}
31
+?>
29 32
 <?php endif; ?>
30 33
 <h3>Answers posted: </h3>
31 34
 <?php if (empty($answers)) : ?>
32 35
     <p>This user hasn't posted any answers yet.</p>
33
-<?php else: ?>
36
+<?php else {
37
+    : ?>
34 38
     <?php foreach ($answers as $answer) : ?>
35 39
         <p>
36 40
             <a href="../../forum/question/<?= $answer->question_id ?>"><?= $answer->content ?></a>
37 41
         </p>
38
-    <?php endforeach; ?>
42
+    <?php endforeach;
43
+}
44
+?>
39 45
 <?php endif; ?>
Please login to merge, or discard this patch.
view/profile/index.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,19 +24,25 @@
 block discarded – undo
24 24
 <?php endforeach; ?>
25 25
 <?php if (empty($posts)) : ?>
26 26
     <p>You have not made any posts yet.</p>
27
-<?php else : ?>
27
+<?php else {
28
+    : ?>
28 29
     <h3>Questions you have asked: </h3>
29 30
     <?php foreach ($posts as $post) : ?>
30 31
         <p>
31 32
             <a href="forum/question/<?= $post->id ?>"><?= $post->title ?></a>
32 33
         </p>
33
-    <?php endforeach; ?>
34
+    <?php endforeach;
35
+}
36
+?>
34 37
 <?php endif; ?>
35 38
 <?php if (empty($answers)) : ?>
36 39
     <p>You have not posted any answers yet.</p>
37
-<?php else : ?>
40
+<?php else {
41
+    : ?>
38 42
     <h3>Answers you have posted: </h3>
39 43
     <?php foreach ($answers as $answer) : ?>
40 44
         <a href="forum/question/<?= $answer->question_id ?>"><?= $answer->content ?></a>
41
-    <?php endforeach; ?>
45
+    <?php endforeach;
46
+}
47
+?>
42 48
 <?php endif; ?>
Please login to merge, or discard this patch.
view/forum/specific.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,12 @@
 block discarded – undo
38 38
         <p>
39 39
             <a href="../answer/<?= $item->id ?>">Answer this post</a>
40 40
         </p>
41
-    <?php else : ?>
41
+    <?php else {
42
+    : ?>
42 43
         <p>You have to be logged in to answer on a post!</p>
43
-    <?php endif; ?>
44
+    <?php endif;
45
+}
46
+?>
44 47
     <?php foreach ($answers as $answer) : ?>
45 48
         <h2>Answers:</h2>
46 49
         <?= $filter->doFilter($answer->content, "markdown"); ?>
Please login to merge, or discard this patch.
view/forum/index.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,10 @@
 block discarded – undo
34 34
         <p>
35 35
             <a href="forum/create">Create a new post</a>
36 36
         </p>
37
-    <?php else : ?>
37
+    <?php else {
38
+    : ?>
38 39
         <p>You have to be logged in to create a new post</p>
39
-    <?php endif; ?>
40
+    <?php endif;
41
+}
42
+?>
40 43
 </article>
Please login to merge, or discard this patch.