Code Duplication    Length = 17-17 lines in 2 locations

src/Comment/ProfileController.php 2 locations

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