Code Duplication    Length = 7-7 lines in 2 locations

src/Comments/CommentsController.php 2 locations

@@ 37-43 (lines=7) @@
34
        }
35
    }
36
37
    public function delete()
38
    {
39
        $this->di->get("comments")->deleteComment($_GET['id'], $this->db);
40
        if (!headers_sent()) {
41
            $this->response->redirect("comments");
42
        }
43
    }
44
45
    public function edit()
46
    {
@@ 45-51 (lines=7) @@
42
        }
43
    }
44
45
    public function edit()
46
    {
47
        $this->di->get("comments")->editComment($_POST['id'], $_POST['comment'], $this->db);
48
        if (!headers_sent()) {
49
            $this->response->redirect("comments");
50
        }
51
    }
52
53
    public function get($id)
54
    {