Skip to content

Commit 8e8516a

Browse files
committed
remove redundant code
1 parent 5fc705e commit 8e8516a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Lfm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function currentLfmType()
8282
public function getDisplayMode()
8383
{
8484
$type_key = $this->currentLfmType();
85-
$startup_view = config('lfm.folder_categories.' . $type_key . '.startup_view');
85+
$startup_view = $this->config->get('lfm.folder_categories.' . $type_key . '.startup_view');
8686

8787
$view_type = 'grid';
8888
$target_display_type = $this->input('show_list') ?: $startup_view;

src/controllers/UploadController.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
namespace UniSharp\LaravelFilemanager\controllers;
44

5-
use Illuminate\Support\Facades\File;
65
use Illuminate\Support\Facades\Log;
7-
use Intervention\Image\Facades\Image;
8-
use Symfony\Component\HttpFoundation\File\UploadedFile;
96
use UniSharp\LaravelFilemanager\Events\ImageIsUploading;
107
use UniSharp\LaravelFilemanager\Events\ImageWasUploaded;
118
use UniSharp\LaravelFilemanager\Lfm;

0 commit comments

Comments
 (0)