Code Duplication    Length = 12-12 lines in 2 locations

src/models/StatisticSearch.php 1 location

@@ 16-27 (lines=12) @@
13
use hipanel\base\SearchModelTrait;
14
use Yii;
15
16
class StatisticSearch extends Statistic
17
{
18
    use SearchModelTrait;
19
20
    public function attributeLabels()
21
    {
22
        return $this->mergeAttributeLabels([
23
            'name_like' => Yii::t('hipanel:ticket', 'Name'),
24
            'author_id' => Yii::t('hipanel:ticket', 'Author'),
25
        ]);
26
    }
27
}
28

src/models/TemplateSearch.php 1 location

@@ 16-27 (lines=12) @@
13
use hipanel\base\SearchModelTrait;
14
use Yii;
15
16
class TemplateSearch extends Template
17
{
18
    use SearchModelTrait;
19
20
    public function attributeLabels()
21
    {
22
        return $this->mergeAttributeLabels([
23
            'name_like' => Yii::t('hipanel:ticket', 'Name'),
24
            'author_id' => Yii::t('hipanel:ticket', 'Author'),
25
        ]);
26
    }
27
}
28