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

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