Code Duplication    Length = 15-15 lines in 2 locations

src/Comment/AdminController.php 2 locations

@@ 85-99 (lines=15) @@
82
     *
83
     * @return void
84
     */
85
    public function getPostAdminEditUser($id)
86
    {
87
        $form = new EditUserForm($this->di, $id);
88
        $form->check();
89
90
        $views = [
91
            ["comment/admin/navbar", [], "main"],
92
            ["comment/admin/crud/edit", ["form" => $form->getHTML()], "main"]
93
        ];
94
95
        $this->di->get("pageRenderComment")->renderPage([
96
            "views" => $views,
97
            "title" => "Edit user"
98
        ]);
99
    }
100
101
    /**
102
     * Description.
@@ 110-124 (lines=15) @@
107
     *
108
     * @return void
109
     */
110
    public function getPostAdminCreateUser()
111
    {
112
        $form = new CreateUserForm2($this->di);
113
        $form->check();
114
115
        $views = [
116
            ["comment/admin/navbar", [], "main"],
117
            ["comment/admin/crud/edit", ["form" => $form->getHTML()], "main"]
118
        ];
119
120
        $this->di->get("pageRenderComment")->renderPage([
121
            "views" => $views,
122
            "title" => "Create user"
123
        ]);
124
    }
125
}
126