Code Duplication    Length = 16-17 lines in 3 locations

models/Contact.php 1 location

@@ 109-125 (lines=17) @@
106
    /**
107
     * {@inheritdoc}
108
     */
109
    public function attributeLabels()
110
    {
111
        return [
112
            'id' => 'ID',
113
            'default' => 'Default',
114
            'title' => 'Title',
115
            'address' => 'Address',
116
            'email' => 'Email',
117
            'phone' => 'Phone',
118
            'metaKeys' => 'Meta Keys',
119
            'metaDescription' => 'Meta Description',
120
            'created_at' => 'Created At',
121
            'updated_at' => 'Updated At',
122
            'mapQ' => 'Map place',
123
            'mapZoom' => 'Map zoom',
124
        ];
125
    }
126
127
    /**
128
     * Returns the default contacts record.

models/Page.php 1 location

@@ 193-208 (lines=16) @@
190
    /**
191
     * @inheritdoc
192
     */
193
    public function attributeLabels()
194
    {
195
        return [
196
            'id' => 'ID',
197
            'parentId' => 'Parent Id',
198
            'icon' => 'Icon',
199
            'active' => 'Active',
200
            'title' => 'Title',
201
            'description' => 'Description',
202
            'content' => 'Content',
203
            'metaKeys' => 'Meta keys',
204
            'metaDescription' => 'Meta description',
205
            'created_at' => 'Created At',
206
            'updated_at' => 'Updated At',
207
        ];
208
    }
209
210
    /**
211
     * @param bool $insert

models/Product.php 1 location

@@ 216-231 (lines=16) @@
213
    /**
214
     * {@inheritdoc}
215
     */
216
    public function attributeLabels()
217
    {
218
        return [
219
            'id' => 'ID',
220
            'pageId' => 'Page ID',
221
            'icon' => 'Icon',
222
            'active' => 'Active',
223
            'title' => 'Title',
224
            'description' => 'Description',
225
            'content' => 'Content',
226
            'metaKeys' => 'Meta Keys',
227
            'metaDescription' => 'Meta Description',
228
            'created_at' => 'Created At',
229
            'updated_at' => 'Updated At',
230
        ];
231
    }
232
233
    /**
234
     * @return \yii\db\ActiveQuery