Code Duplication    Length = 3-3 lines in 2 locations

src/Comment/CommentController.php 1 location

@@ 81-83 (lines=3) @@
78
79
        $allPosts = [];
80
81
        foreach ($posts as $p) {
82
            array_push($allPosts, [$p, $post->getTags([$p->postid])]);
83
        }
84
85
        $data = [
86
            "items" => $allPosts,

src/Overview/OverviewController.php 1 location

@@ 41-43 (lines=3) @@
38
39
        $allPosts = [];
40
41
        foreach ($posts as $p) {
42
            array_push($allPosts, [$p, $this->getTags([$p->postid])]);
43
        }
44
45
        $data = [
46
            "items" => $this->getUsers(),