Code Duplication    Length = 17-17 lines in 2 locations

src/Comment/ProfileController.php 2 locations

@@ 67-83 (lines=17) @@
64
     *
65
     * @return void
66
     */
67
    public function getPostEditUser()
68
    {
69
        $name = $this->di->get('session')->get("user");
70
        $user = $this->getUserDetails($name);
71
72
        $form       = new EditProfileForm($this->di, $name);
73
        $form->check();
74
75
        $views = [
76
            ["comment/user/profile/edit", ["form" => $form->getHTML(), "user" => $user], "main"]
77
        ];
78
79
        $this->di->get("pageRenderComment")->renderPage([
80
            "views" =>  $views,
81
            "title" => "Edit Profile"
82
        ]);
83
    }
84
85
    /**
86
     * Description.
@@ 94-110 (lines=17) @@
91
     *
92
     * @return void
93
     */
94
    public function getPostEditSecurity()
95
    {
96
        $name = $this->di->get('session')->get("user");
97
        $user = $this->getUserDetails($name);
98
99
        $form       = new UpdateProfileSecurityForm($this->di);
100
        $form->check();
101
102
        $views = [
103
            ["comment/user/profile/edit", ["form" => $form->getHTML(), "user" => $user], "main"]
104
        ];
105
106
        $this->di->get("pageRenderComment")->renderPage([
107
            "views" =>  $views,
108
            "title" => "Edit Profile"
109
        ]);
110
    }
111
}
112