Code Duplication    Length = 20-21 lines in 3 locations

models/Article.php 1 location

@@ 213-232 (lines=20) @@
210
    /**
211
     * @return array
212
     */
213
    public function attributes(): array
214
    {
215
        return [
216
            UploadModelInterface::FILE_TYPE_THUMB,
217
            UploadModelInterface::FILE_TYPE_IMAGE,
218
            'albums',
219
            'id',
220
            'pageId',
221
            'icon',
222
            'alias',
223
            'active',
224
            'title',
225
            'description',
226
            'content',
227
            'metaKeys',
228
            'metaDescription',
229
            'created_at',
230
            'updated_at'
231
        ];
232
    }
233
234
    /**
235
     * {@inheritdoc}

models/Page.php 1 location

@@ 207-227 (lines=21) @@
204
    /**
205
     * @return array
206
     */
207
    public function attributes(): array
208
    {
209
        return [
210
            UploadModelInterface::FILE_TYPE_THUMB,
211
            UploadModelInterface::FILE_TYPE_IMAGE,
212
            'albums',
213
            'id',
214
            'parentId',
215
            'icon',
216
            'alias',
217
            'active',
218
            'newParentId',
219
            'title',
220
            'description',
221
            'content',
222
            'metaKeys',
223
            'metaDescription',
224
            'created_at',
225
            'updated_at',
226
        ];
227
    }
228
229
    /**
230
     * @inheritdoc

models/Product.php 1 location

@@ 221-241 (lines=21) @@
218
    /**
219
     * @return array
220
     */
221
    public function attributes(): array
222
    {
223
        return [
224
            UploadModelInterface::FILE_TYPE_THUMB,
225
            UploadModelInterface::FILE_TYPE_IMAGE,
226
            'albums',
227
            'id',
228
            'categoryId',
229
            'icon',
230
            'price',
231
            'alias',
232
            'active',
233
            'title',
234
            'description',
235
            'content',
236
            'metaKeys',
237
            'metaDescription',
238
            'created_at',
239
            'updated_at'
240
        ];
241
    }
242
243
    /**
244
     * {@inheritdoc}