Code Duplication    Length = 15-15 lines in 2 locations

src/Comment/AdminController.php 2 locations

@@ 78-92 (lines=15) @@
75
     *
76
     * @return void
77
     */
78
    public function getPostAdminEditUser($id)
79
    {
80
        $form = new EditUserForm($this->di, $id);
81
        $form->check();
82
83
        $views = [
84
            ["comment/admin/navbar", [], "main"],
85
            ["comment/admin/crud/edit", ["form" => $form->getHTML()], "main"]
86
        ];
87
88
        $this->di->get("pageRenderComment")->renderPage([
89
            "views" => $views,
90
            "title" => "Edit user"
91
        ]);
92
    }
93
94
    /**
95
     * Description.
@@ 99-113 (lines=15) @@
96
     *
97
     * @return void
98
     */
99
    public function getPostAdminCreateUser()
100
    {
101
        $form = new CreateUserForm2($this->di);
102
        $form->check();
103
104
        $views = [
105
            ["comment/admin/navbar", [], "main"],
106
            ["comment/admin/crud/edit", ["form" => $form->getHTML()], "main"]
107
        ];
108
109
        $this->di->get("pageRenderComment")->renderPage([
110
            "views" => $views,
111
            "title" => "Create user"
112
        ]);
113
    }
114
}
115