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

@@ 122-128 (lines=7) @@
119
        return $data;
120
    }
121
122
    public function getCatName($id)
123
    {
124
        $postcat = new PostCategory();
125
        $postcat->setDb($this->di->get("db"));
126
        $res = $postcat->getCatName($id);
127
        return $res;
128
    }
129
}
130