Code Duplication    Length = 7-8 lines in 2 locations

src/Comment/CommentController.php 1 location

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

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