Code Duplication    Length = 11-11 lines in 2 locations

src/models/Answer.php 1 location

@@ 63-73 (lines=11) @@
60
    /**
61
     * @return array
62
     */
63
    public function behaviors()
64
    {
65
        return [
66
            [
67
                'class' => 'hipanel\behaviors\File',
68
                'attribute' => 'file',
69
                'targetAttribute' => 'file_ids',
70
                'scenarios' => ['create', 'answer'],
71
            ],
72
        ];
73
    }
74
75
    /**
76
     * @return array

src/models/Thread.php 1 location

@@ 52-62 (lines=11) @@
49
    /**
50
     * @return array
51
     */
52
    public function behaviors()
53
    {
54
        return [
55
            [
56
                'class' => File::class,
57
                'attribute' => 'file',
58
                'targetAttribute' => 'file_ids',
59
                'scenarios' => ['create', 'answer'],
60
            ],
61
        ];
62
    }
63
64
    /**
65
     * @return array