Code Duplication    Length = 10-10 lines in 2 locations

models/AuthItemModel.php 1 location

@@ 139-148 (lines=10) @@
136
    /**
137
     * @inheritdoc
138
     */
139
    public function attributeLabels(): array
140
    {
141
        return [
142
            'name' => Yii::t('yii2mod.rbac', 'Name'),
143
            'type' => Yii::t('yii2mod.rbac', 'Type'),
144
            'description' => Yii::t('yii2mod.rbac', 'Description'),
145
            'ruleName' => Yii::t('yii2mod.rbac', 'Rule Name'),
146
            'data' => Yii::t('yii2mod.rbac', 'Data'),
147
        ];
148
    }
149
150
    /**
151
     * Check if is new record.

models/search/AuthItemSearch.php 1 location

@@ 58-67 (lines=10) @@
55
    /**
56
     * @inheritdoc
57
     */
58
    public function attributeLabels(): array
59
    {
60
        return [
61
            'name' => Yii::t('yii2mod.rbac', 'Name'),
62
            'type' => Yii::t('yii2mod.rbac', 'Type'),
63
            'description' => Yii::t('yii2mod.rbac', 'Description'),
64
            'rule' => Yii::t('yii2mod.rbac', 'Rule'),
65
            'data' => Yii::t('yii2mod.rbac', 'Data'),
66
        ];
67
    }
68
69
    /**
70
     * Creates data provider instance with search query applied