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

@@ 94-101 (lines=8) @@
91
     *
92
     * @return Comm
93
     */
94
    public function getCommDetails($id)
95
    {
96
        $comm = new Comm();
97
        $comm->setDb($this->di->get("db"));
98
        $comm->find("id", $id);
99
        return $comm;
100
    }
101
102
103
104
    /**