Code Duplication    Length = 17-17 lines in 2 locations

src/Comment/ProfileController.php 2 locations

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