Code Duplication    Length = 9-9 lines in 2 locations

src/models/Mediafile.php 2 locations

@@ 294-302 (lines=9) @@
291
     *
292
     * @return string
293
     */
294
    public function getAudioPreview(array $mainTagOptions): string
295
    {
296
        return Html::audio($this->getViewUrl(), ArrayHelper::merge([
297
                'source' => [
298
                    'type' => $this->type
299
                ]
300
            ], $mainTagOptions)
301
        );
302
    }
303
304
    /**
305
     * Get video preview.
@@ 311-319 (lines=9) @@
308
     *
309
     * @return string
310
     */
311
    public function getVideoPreview(array $mainTagOptions): string
312
    {
313
        return Html::video($this->getViewUrl(), ArrayHelper::merge([
314
                'source' => [
315
                    'type' => $this->type
316
                ]
317
            ], $mainTagOptions)
318
        );
319
    }
320
321
    /**
322
     * Get application preview.