Code Duplication    Length = 8-8 lines in 2 locations

src/controllers/AnswerController.php 1 location

@@ 45-52 (lines=8) @@
42
    /**
43
     * @return array
44
     */
45
    protected function prepareRefs()
46
    {
47
        return [
48
            'topic_data'    => $this->getRefs('topic,ticket', 'hipanel/ticket'),
49
            'state_data'    => $this->getClassRefs('state', 'hipanel/ticket'),
50
            'priority_data' => $this->getPriorities(),
51
        ];
52
    }
53
}
54

src/controllers/TicketController.php 1 location

@@ 255-262 (lines=8) @@
252
    /**
253
     * @return array
254
     */
255
    protected function prepareRefs()
256
    {
257
        return [
258
            'topic_data' => $this->getRefs('topic,ticket', 'hipanel/ticket'),
259
            'state_data' => $this->getClassRefs('state', 'hipanel/ticket'),
260
            'priority_data' => $this->getPriorities(),
261
        ];
262
    }
263
264
    public function actionTemplateText($id, $lang)
265
    {