Code Duplication    Length = 8-8 lines in 3 locations

models/Article.php 1 location

@@ 270-277 (lines=8) @@
267
     *
268
     * @return Album[]
269
     */
270
    public function getAlbums()
271
    {
272
        return OwnerAlbum::getAlbumsQuery([
273
            'owner' => static::tableName(),
274
            'ownerId' => $this->id,
275
            'ownerAttribute' => 'albums',
276
        ])->all();
277
    }
278
}
279

models/Page.php 1 location

@@ 290-297 (lines=8) @@
287
     *
288
     * @return Album[]
289
     */
290
    public function getAlbums()
291
    {
292
        return OwnerAlbum::getAlbumsQuery([
293
            'owner' => static::tableName(),
294
            'ownerId' => $this->id,
295
            'ownerAttribute' => 'albums',
296
        ])->all();
297
    }
298
}
299

models/Product.php 1 location

@@ 280-287 (lines=8) @@
277
     *
278
     * @return Album[]
279
     */
280
    public function getAlbums()
281
    {
282
        return OwnerAlbum::getAlbumsQuery([
283
            'owner' => static::tableName(),
284
            'ownerId' => $this->id,
285
            'ownerAttribute' => 'albums',
286
        ])->all();
287
    }
288
}
289