Code Duplication    Length = 11-11 lines in 2 locations

src/models/Answer.php 1 location

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

src/models/Thread.php 1 location

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