Code Duplication    Length = 3-3 lines in 2 locations

src/Comment/CommentController.php 1 location

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

src/Overview/OverviewController.php 1 location

@@ 73-75 (lines=3) @@
70
71
        $allPosts = [];
72
73
        foreach ($posts as $p) {
74
            array_push($allPosts, [$p, $this->getTags([$p->postid])]);
75
        }
76
77
        $data = [
78
            "items" => $this->getUsers(),