Code Duplication    Length = 19-19 lines in 2 locations

models/Page.php 1 location

@@ 170-188 (lines=19) @@
167
    /**
168
     * @return array
169
     */
170
    public function attributes(): array
171
    {
172
        return [
173
            UploadModelInterface::FILE_TYPE_THUMB,
174
            'albums',
175
            'id',
176
            'parentId',
177
            'icon',
178
            'active',
179
            'newParentId',
180
            'title',
181
            'description',
182
            'content',
183
            'metaKeys',
184
            'metaDescription',
185
            'created_at',
186
            'updated_at',
187
        ];
188
    }
189
190
    /**
191
     * @inheritdoc

models/Product.php 1 location

@@ 193-211 (lines=19) @@
190
    /**
191
     * @return array
192
     */
193
    public function attributes(): array
194
    {
195
        return [
196
            UploadModelInterface::FILE_TYPE_THUMB,
197
            UploadModelInterface::FILE_TYPE_IMAGE,
198
            'albums',
199
            'id',
200
            'pageId',
201
            'icon',
202
            'active',
203
            'title',
204
            'description',
205
            'content',
206
            'metaKeys',
207
            'metaDescription',
208
            'created_at',
209
            'updated_at'
210
        ];
211
    }
212
213
    /**
214
     * {@inheritdoc}