Code Duplication    Length = 17-17 lines in 2 locations

src/models/Answer.php 1 location

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

src/models/Thread.php 1 location

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