Code Duplication    Length = 12-14 lines in 3 locations

src/Comments/CommController.php 3 locations

@@ 49-61 (lines=13) @@
46
     *
47
     * @return void
48
     */
49
    public function getIndex()
50
    {
51
        $title      = "Inlägg";
52
53
        $text = new ShowAllService($this->di);
54
55
        $data = [
56
            "items" => $text->getHTML(),
57
        ];
58
59
        $crud = "comm/crud/front";
60
        $this->toRender($title, $crud, $data);
61
    }
62
63
64
@@ 141-154 (lines=14) @@
138
     *
139
     * @return void
140
     */
141
    public function getPostAdminDeleteItem()
142
    {
143
        $title      = "Ta bort text";
144
        $form       = new AdminDeleteCommForm($this->di);
145
146
        $form->check();
147
148
        $data = [
149
            "form" => $form->getHTML(),
150
        ];
151
152
        $crud = "comm/crud/admindelete";
153
        $this->toRender($title, $crud, $data);
154
    }
155
156
157
@@ 192-203 (lines=12) @@
189
     *
190
     * @return void
191
     */
192
    public function getPostShow($id)
193
    {
194
        $title      = "Inlägg";
195
        $text       = new ShowOneService($this->di, $id);
196
197
        $data = [
198
            "items" => $text->getHTML(),
199
        ];
200
201
        $crud = "comm/crud/view-one";
202
        $this->toRender($title, $crud, $data);
203
    }
204
}
205