Code Duplication    Length = 17-17 lines in 3 locations

models/Article.php 1 location

@@ 237-253 (lines=17) @@
234
    /**
235
     * {@inheritdoc}
236
     */
237
    public function attributeLabels()
238
    {
239
        return [
240
            'id' => 'ID',
241
            'pageId' => Yii::t('articles', 'Parent page'),
242
            'icon' => Yii::t('app', 'Icon'),
243
            'active' => Yii::t('app', 'Active status'),
244
            'alias' => Yii::t('app', 'URL Alias'),
245
            'title' => Yii::t('app', 'Title'),
246
            'description' => Yii::t('app', 'Description'),
247
            'content' => Yii::t('app', 'Content'),
248
            'metaKeys' => Yii::t('app', 'Meta keys'),
249
            'metaDescription' => Yii::t('app', 'Meta description'),
250
            'created_at' => Yii::t('app', 'Created date'),
251
            'updated_at' => Yii::t('app', 'Updated date'),
252
        ];
253
    }
254
255
    /**
256
     * @return \yii\db\ActiveQuery

models/Contact.php 1 location

@@ 96-112 (lines=17) @@
93
    /**
94
     * {@inheritdoc}
95
     */
96
    public function attributeLabels()
97
    {
98
        return [
99
            'id' => 'ID',
100
            'default' => Yii::t('app', 'Default'),
101
            'title' => Yii::t('contacts', 'Title'),
102
            'address' => Yii::t('contacts', 'Address'),
103
            'email' => Yii::t('contacts', 'Email'),
104
            'phone' => Yii::t('contacts', 'Phone'),
105
            'metaKeys' => Yii::t('app', 'Meta keys'),
106
            'metaDescription' => Yii::t('app', 'Meta description'),
107
            'created_at' => Yii::t('app', 'Created date'),
108
            'updated_at' => Yii::t('app', 'Updated date'),
109
            'mapQ' => Yii::t('contacts', 'Map place'),
110
            'mapZoom' => Yii::t('contacts', 'Map zoom'),
111
        ];
112
    }
113
114
    /**
115
     * Returns the default contacts record.

models/Page.php 1 location

@@ 232-248 (lines=17) @@
229
    /**
230
     * @inheritdoc
231
     */
232
    public function attributeLabels()
233
    {
234
        return [
235
            'id' => 'ID',
236
            'parentId' => Yii::t('app', 'Parent object'),
237
            'icon' => Yii::t('app', 'Icon'),
238
            'active' => Yii::t('app', 'Active status'),
239
            'alias' => Yii::t('app', 'URL Alias'),
240
            'title' => Yii::t('app', 'Title'),
241
            'description' => Yii::t('app', 'Description'),
242
            'content' => Yii::t('app', 'Content'),
243
            'metaKeys' => Yii::t('app', 'Meta keys'),
244
            'metaDescription' => Yii::t('app', 'Meta description'),
245
            'created_at' => Yii::t('app', 'Created date'),
246
            'updated_at' => Yii::t('app', 'Updated date'),
247
        ];
248
    }
249
250
    /**
251
     * @param bool $insert