Code Duplication    Length = 8-8 lines in 2 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
    {