Code Duplication    Length = 7-7 lines in 2 locations

Http/Controllers/Admin/MediaGridController.php 2 locations

@@ 30-36 (lines=7) @@
27
     * A grid view for the upload button
28
     * @return \Illuminate\View\View
29
     */
30
    public function index()
31
    {
32
        $files = $this->file->all();
33
        $thumbnails = $this->thumbnailsManager->all();
34
35
        return view('media::admin.grid.general', compact('files', 'thumbnails'));
36
    }
37
38
    /**
39
     * A grid view of uploaded files used for the wysiwyg editor
@@ 42-48 (lines=7) @@
39
     * A grid view of uploaded files used for the wysiwyg editor
40
     * @return \Illuminate\View\View
41
     */
42
    public function ckIndex()
43
    {
44
        $files = $this->file->all();
45
        $thumbnails = $this->thumbnailsManager->all();
46
47
        return view('media::admin.grid.ckeditor', compact('files', 'thumbnails'));
48
    }
49
}
50