Code Duplication    Length = 7-8 lines in 3 locations

src/Comments/HTMLForm/DeleteCommForm.php 1 location

@@ 58-64 (lines=7) @@
55
     *
56
     * @return array with key value of all items.
57
     */
58
    protected function getCommDetails($id)
59
    {
60
        $comm = new Comm();
61
        $comm->setDb($this->di->get("db"));
62
        $comm->find("id", $id);
63
        return $comm;
64
    }
65
66
67

src/Comments/ShowOneService.php 1 location

@@ 48-54 (lines=7) @@
45
     *
46
     * @return Comm
47
     */
48
    public function getItemDetails($id)
49
    {
50
        $comm = new Comm();
51
        $comm->setDb($this->di->get("db"));
52
        $comm->find("id", $id);
53
        return $comm;
54
    }
55
56
57
        /**

src/Comments/HTMLForm/UpdateCommForm.php 1 location

@@ 73-80 (lines=8) @@
70
     *
71
     * @return Comm
72
     */
73
    public function getCommDetails($id)
74
    {
75
        $comm = new Comm();
76
        $comm->setDb($this->di->get("db"));
77
        $comm->find("id", $id);
78
        return $comm;
79
    }
80
81
82
83
    /**