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

@@ 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