Code Duplication    Length = 12-12 lines in 4 locations

models/Article.php 1 location

@@ 203-214 (lines=12) @@
200
    /**
201
     * {@inheritdoc}
202
     */
203
    public function attributeLabels()
204
    {
205
        return [
206
            'id' => 'ID',
207
            'pageId' => Yii::t('articles', 'Parent page'),
208
            'icon' => Yii::t('app', 'Icon'),
209
            'active' => Yii::t('app', 'Active status'),
210
            'alias' => Yii::t('app', 'URL Alias'),
211
            'created_at' => Yii::t('app', 'Created date'),
212
            'updated_at' => Yii::t('app', 'Updated date'),
213
        ];
214
    }
215
216
    /**
217
     * @return \yii\db\ActiveQuery

models/Category.php 1 location

@@ 119-130 (lines=12) @@
116
    /**
117
     * @inheritdoc
118
     */
119
    public function attributeLabels()
120
    {
121
        return [
122
            'id' => 'ID',
123
            'parentId' => Yii::t('app', 'Parent object'),
124
            'icon' => Yii::t('app', 'Icon'),
125
            'active' => Yii::t('app', 'Active status'),
126
            'alias' => Yii::t('app', 'URL Alias'),
127
            'created_at' => Yii::t('app', 'Created date'),
128
            'updated_at' => Yii::t('app', 'Updated date'),
129
        ];
130
    }
131
132
    /**
133
     * Reassigning child objects to their new parent after delete the main model record.

models/Page.php 1 location

@@ 202-213 (lines=12) @@
199
    /**
200
     * @inheritdoc
201
     */
202
    public function attributeLabels()
203
    {
204
        return [
205
            'id' => 'ID',
206
            'parentId' => Yii::t('app', 'Parent object'),
207
            'icon' => Yii::t('app', 'Icon'),
208
            'active' => Yii::t('app', 'Active status'),
209
            'alias' => Yii::t('app', 'URL Alias'),
210
            'created_at' => Yii::t('app', 'Created date'),
211
            'updated_at' => Yii::t('app', 'Updated date'),
212
        ];
213
    }
214
215
    /**
216
     * Reassigning child objects to their new parent after delete the main model record.

models/Technology.php 1 location

@@ 92-103 (lines=12) @@
89
    /**
90
     * {@inheritdoc}
91
     */
92
    public function attributeLabels()
93
    {
94
        return [
95
            'id' => 'ID',
96
            'name' => Yii::t('technologies', 'Name'),
97
            'share' => Yii::t('technologies', 'Share'),
98
            'icon' => Yii::t('app', 'Icon'),
99
            'about' => Yii::t('about', 'About'),
100
            'created_at' => Yii::t('app', 'Created date'),
101
            'updated_at' => Yii::t('app', 'Updated date'),
102
        ];
103
    }
104
105
    /**
106
     * @return array