Code Duplication    Length = 8-8 lines in 2 locations

src/controllers/AnswerController.php 1 location

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

src/controllers/TicketController.php 1 location

@@ 234-241 (lines=8) @@
231
    /**
232
     * @return array
233
     */
234
    protected function prepareRefs()
235
    {
236
        return [
237
            'topic_data' => $this->getRefs('topic,ticket', 'hipanel:ticket'),
238
            'state_data' => $this->getClassRefs('state', 'hipanel:ticket'),
239
            'priority_data' => $this->getPriorities(),
240
        ];
241
    }
242
243
    /**
244
     * @return string