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

@@ 259-266 (lines=8) @@
256
    /**
257
     * @return array
258
     */
259
    protected function prepareRefs()
260
    {
261
        return [
262
            'topic_data' => $this->getRefs('topic,ticket', 'hipanel:ticket'),
263
            'state_data' => $this->getClassRefs('state', 'hipanel:ticket'),
264
            'priority_data' => $this->getPriorities(),
265
        ];
266
    }
267
268
    /**
269
     * @return string