Passed
Push — master ( c37d37...271c7a )
by Alexey
03:12
created
view/comments/index.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,9 +48,12 @@  discard block
 block discarded – undo
48 48
                 <div class="container">
49 49
                     <?=$form?>
50 50
                 </div>
51
-            <?php else : ?>
51
+            <?php else {
52
+    : ?>
52 53
                 <p>Log in to leave a comment</p>
53
-            <?php endif; ?>
54
+            <?php endif;
55
+}
56
+?>
54 57
 
55 58
         </div>
56 59
     </div>
@@ -74,7 +77,10 @@  discard block
 block discarded – undo
74 77
             <a href="<?=$app->url->create("comments/edit/")?>">
75 78
                 <button type="submit" class="btn btn-primary" name="submit" value="<?=$id ?? ''?>">Edit your comment</button>
76 79
             </a>
77
-        <?php else : ?>
80
+        <?php else {
81
+    : ?>
78 82
             <button type="submit" class="btn btn-primary" name="submit" value="<?=$id ?? ''?>">Add your comment</button>
79
-        <?php endif; ?>
83
+        <?php endif;
84
+}
85
+?>
80 86
     </form> -->
Please login to merge, or discard this patch.