Code Duplication    Length = 10-10 lines in 2 locations

src/User/HTMLForm/DeleteUserForm.php 2 locations

@@ 78-87 (lines=10) @@
75
     *
76
     * @return boolean true if okey, false if something went wrong.
77
     */
78
    public function callbackSubmit()
79
    {
80
        $user = new User();
81
        $user->setDb($this->di->get("db"));
82
        $user->find("id", $this->form->value("select"));
83
        $user->delete();
84
85
        $this->form->addOutput("Användaren raderades.");
86
        $this->di->get("response")->redirect("user/edit-all");
87
    }
88
89
    /**
90
     * Callback for submit-button which should return true if it could
@@ 95-104 (lines=10) @@
92
     *
93
     * @return boolean true if okey, false if something went wrong.
94
     */
95
    public function callbackSubmit2()
96
    {
97
        $user = new User();
98
        $user->setDb($this->di->get("db"));
99
        $user->find("id", $this->form->value("select"));
100
101
        $id = $this->form->value("select");
102
103
        $this->di->get("response")->redirect("user/edit/$id");
104
    }
105
}
106