Code Duplication    Length = 7-7 lines in 2 locations

view/comment.php 1 location

@@ 29-35 (lines=7) @@
26
            ?>
27
    <?php endif ?>
28
29
    <?php if (isset($commentGroups[$comment['id']])) : ?>
30
        <?php
31
            $comments = $commentGroups[$comment['id']];
32
            include __DIR__.'/commentlist.php';
33
        ?>
34
    <?php endif ?>
35
</li>
36

view/comments.php 1 location

@@ 14-20 (lines=7) @@
11
        <p>Logga in för att kommentera</p>
12
    <?php endif ?>
13
14
    <?php if (isset($commentGroups[0])) : ?>
15
        <?php
16
            $comments = $commentGroups[0];
17
            include __DIR__.'/commentlist.php';
18
        ?>
19
    <?php endif ?>
20
21
    <script>
22
        var commentReplyTogglers = document.getElementsByClassName("comment-next-sibling-toggler");
23
        for (var i = 0, l = commentReplyTogglers.length; i < l; i++ ) {