Passed
Push — main ( ef9287...ab4e57 )
by A
10:14 queued 15s
created
config/navbar/responsive.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2
-if ($_SESSION["acronym"] ?? null) {
3
-    $status = $_SESSION["status"];
2
+if ($_SESSION[ "acronym" ] ?? null) {
3
+    $status = $_SESSION[ "status" ];
4 4
     $questions = [
5 5
         "text" => "Frågor",
6 6
         "url" => "user/questions",
Please login to merge, or discard this patch.
view/view-question.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -24,16 +24,16 @@  discard block
 block discarded – undo
24 24
 
25 25
 <!-- Show the question -->
26 26
 <div class="main-question">
27
-    <?php echo $filter->parse($res[0]->question, ["markdown"])->text ?>
28
-    - <a href="<?= url("user/viewProfile/{$res[0]->acronym}"); ?>"><?php echo $res[0]->acronym ?></a>
27
+    <?php echo $filter->parse($res[ 0 ]->question, [ "markdown" ])->text ?>
28
+    - <a href="<?= url("user/viewProfile/{$res[ 0 ]->acronym}"); ?>"><?php echo $res[ 0 ]->acronym ?></a>
29 29
     <br>
30
-    <?php echo $res[0]->created ?>
31
-    <?php if ($user == $res[0]->acronym) :?>
32
-        <br><a href="../../user/editPost/<?= $res[0]->id ?>/Question"> Ändra </a>
30
+    <?php echo $res[ 0 ]->created ?>
31
+    <?php if ($user == $res[ 0 ]->acronym) :?>
32
+        <br><a href="../../user/editPost/<?= $res[ 0 ]->id ?>/Question"> Ändra </a>
33 33
     <?php endif; ?>
34 34
     <br><br><a class="img-button" href="<?= url("user/points/Question/{$qId}/{$qId}/1"); ?>"> <?= $up ?> </a>
35 35
     <a class="img-button" href="<?= url("user/points/Question/{$qId}/{$qId}/-1"); ?>"> <?= $down ?> </a>
36
-    Poäng: <?= $res[0]->points ?>
36
+    Poäng: <?= $res[ 0 ]->points ?>
37 37
 </div>
38 38
 
39 39
 <!-- Show comments connected to question -->
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
             <a class="img-button" href="<?= url("user/points/Comments/{$qId}/{$com->id}/-1"); ?>"> <?= $down ?> </a>
47 47
         </div>
48 48
         <div class="q-comments">
49
-            <?php echo $filter->parse($com->comment, ["markdown"])->text ?>
49
+            <?php echo $filter->parse($com->comment, [ "markdown" ])->text ?>
50 50
             - <a href="<?= url("user/viewProfile/{$com->acronym}"); ?>"><?php echo $com->acronym ?></a>
51 51
             <?php echo $com->created ?>
52 52
             <?php if ($user == $com->acronym) :?>
53 53
                 <br><br><a href="../../user/editPost/<?= $com->id ?>/Comments"> Ändra </a>
54 54
             <?php endif; ?>
55
-            <?php if ($user == $res[0]->acronym) :?>
55
+            <?php if ($user == $res[ 0 ]->acronym) :?>
56 56
                 <p><a class="answer-button" href="<?= url("user/acceptAnswer/{$qId}/{$com->id}"); ?>"> Godkänn som svar </a></p>
57 57
             <?php endif; ?>
58 58
         </div>
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     <div class="answer">
69 69
         <h4 class="answer-h4">Svar</h4>
70 70
         <!-- <?= $row->id ?><br> -->
71
-        <?php echo $filter->parse($row->answer, ["markdown"])->text ?><br>
71
+        <?php echo $filter->parse($row->answer, [ "markdown" ])->text ?><br>
72 72
         - <a href="<?= url("user/viewProfile/{$row->acronym}"); ?>"><?php echo $row->acronym ?></a><br>
73 73
         <?= $row->created ?>
74 74
         <?php if ($user == $row->acronym) :?>
@@ -88,13 +88,13 @@  discard block
 block discarded – undo
88 88
             <a class="img-button" href="<?= url("user/points/AnswerComments/{$qId}/{$comment->id}/-1"); ?>"> <?= $down ?> </a>
89 89
         </div>
90 90
         <div class="a-comments">
91
-        <?php echo $filter->parse($comment->comment, ["markdown"])->text ?>
91
+        <?php echo $filter->parse($comment->comment, [ "markdown" ])->text ?>
92 92
         - <a href="<?= url("user/viewProfile/{$comment->acronym}"); ?>"><?php echo $comment->acronym ?></a>
93 93
         <?= $comment->created ?><br>
94 94
         <?php if ($user == $comment->acronym) :?>
95 95
             <a href="../../user/editPost/<?= $comment->id ?>/AnswerComments"> Ändra </a>
96 96
         <?php endif; ?>
97
-        <!-- <?php if ($user == $res[0]->acronym) :?>
97
+        <!-- <?php if ($user == $res[ 0 ]->acronym) :?>
98 98
             <p><a class="answer-button" href="<?= url("user/acceptAnswer/{$qId}/{$comment->id}"); ?>"> Godkänn som svar </a></p>
99 99
         <?php endif; ?> -->
100 100
     </div>
Please login to merge, or discard this patch.