Code Duplication    Length = 7-8 lines in 2 locations

src/Overview/OverviewController.php 1 location

@@ 92-98 (lines=7) @@
89
        return $data;
90
    }
91
92
    public function getCatName($id)
93
    {
94
        $postcat = new PostCategory();
95
        $postcat->setDb($this->di->get("db"));
96
        $res = $postcat->getCatName($id);
97
        return $res;
98
    }
99
}
100

src/Comment/CommentController.php 1 location

@@ 226-233 (lines=8) @@
223
    }
224
225
226
    public function returnCatId($category)
227
    {
228
        $cat = new PostCategory();
229
        $cat->setDb($this->di->get("db"));
230
        $id = $cat->getId($category);
231
        return $id;
232
    }
233
}
234