Code Duplication    Length = 8-8 lines in 3 locations

src/controllers/AnswerController.php 1 location

@@ 58-65 (lines=8) @@
55
    /**
56
     * @return array
57
     */
58
    protected function prepareRefs()
59
    {
60
        return [
61
            'topic_data'    => $this->getRefs('topic,ticket', 'hipanel:ticket'),
62
            'state_data'    => $this->getClassRefs('state', 'hipanel:ticket'),
63
            'priority_data' => $this->getPriorities(),
64
        ];
65
    }
66
}
67

src/controllers/StatisticController.php 1 location

@@ 36-43 (lines=8) @@
33
    /**
34
     * @return array
35
     */
36
    protected function prepareRefs()
37
    {
38
        return [
39
            'topic_data' => $this->getRefs('topic,ticket', 'hipanel:ticket'),
40
            'state_data' => $this->getClassRefs('state', 'hipanel:ticket'),
41
            'priority_data' => $this->getRefs('type,priority', 'hipanel:ticket'),
42
        ];
43
    }
44
45
    public function actions()
46
    {

src/controllers/TicketController.php 1 location

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