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

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