Code Duplication    Length = 17-17 lines in 2 locations

src/models/Answer.php 1 location

@@ 142-158 (lines=17) @@
139
    /**
140
     * {@inheritdoc}
141
     */
142
    public function attributeLabels()
143
    {
144
        return $this->mergeAttributeLabels([
145
            'author'           => Yii::t('hipanel/ticket', 'Author'),
146
            'author_id'        => Yii::t('hipanel/ticket', 'Author'),
147
            'recipient'        => Yii::t('hipanel/ticket', 'Recipient'),
148
            'is_private'       => Yii::t('hipanel/ticket', 'Make private'),
149
            'responsible'      => Yii::t('hipanel/ticket', 'Assignee'),
150
            'responsible_id'   => Yii::t('hipanel/ticket', 'Assignee'),
151
            'spent'            => Yii::t('hipanel/ticket', 'Spent time'),
152
            'create_time'      => Yii::t('hipanel/ticket', 'Created'),
153
            'a_reply_time'     => Yii::t('hipanel/ticket', 'a_reply_time'),
154
            'file'             => Yii::t('hipanel/ticket', 'Files'),
155
            'lastanswer'       => Yii::t('hipanel/ticket', 'Last answer'),
156
            'author_seller'    => Yii::t('hipanel/ticket', 'Author\'s seller'),
157
        ]);
158
    }
159
160
    public function getClient()
161
    {

src/models/Thread.php 1 location

@@ 175-191 (lines=17) @@
172
    /**
173
     * {@inheritdoc}
174
     */
175
    public function attributeLabels()
176
    {
177
        return $this->mergeAttributeLabels([
178
            'author'           => Yii::t('hipanel/ticket', 'Author'),
179
            'author_id'        => Yii::t('hipanel/ticket', 'Author'),
180
            'recipient'        => Yii::t('hipanel/ticket', 'Recipient'),
181
            'is_private'       => Yii::t('hipanel/ticket', 'Make private'),
182
            'responsible'      => Yii::t('hipanel/ticket', 'Assignee'),
183
            'responsible_id'   => Yii::t('hipanel/ticket', 'Assignee'),
184
            'spent'            => Yii::t('hipanel/ticket', 'Spent time'),
185
            'create_time'      => Yii::t('hipanel/ticket', 'Created'),
186
            'a_reply_time'     => Yii::t('hipanel/ticket', 'a_reply_time'),
187
            'file'             => Yii::t('hipanel/ticket', 'Files'),
188
            'lastanswer'       => Yii::t('hipanel/ticket', 'Last answer'),
189
            'author_seller'    => Yii::t('hipanel/ticket', 'Author\'s seller'),
190
        ]);
191
    }
192
193
    public function getClient()
194
    {