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

@@ 246-253 (lines=8) @@
243
    /**
244
     * @return array
245
     */
246
    protected function prepareRefs()
247
    {
248
        return [
249
            'topic_data' => $this->getRefs('topic,ticket', 'hipanel/ticket'),
250
            'state_data' => $this->getClassRefs('state', 'hipanel/ticket'),
251
            'priority_data' => $this->getPriorities(),
252
        ];
253
    }
254
255
    /**
256
     * @return string