diff --git a/src/FilemanagerServiceProvider.php b/src/FilemanagerServiceProvider.php index fe741c5..ac9f5eb 100755 --- a/src/FilemanagerServiceProvider.php +++ b/src/FilemanagerServiceProvider.php @@ -2,11 +2,11 @@ namespace Infinety\Filemanager; +use Laravel\Nova\Nova; +use Laravel\Nova\Events\ServingNova; use Illuminate\Support\Facades\Route; use Illuminate\Support\ServiceProvider; use Infinety\Filemanager\Http\Middleware\Authorize; -use Laravel\Nova\Events\ServingNova; -use Laravel\Nova\Nova; class FilemanagerServiceProvider extends ServiceProvider { diff --git a/src/Http/Controllers/FilemanagerToolController.php b/src/Http/Controllers/FilemanagerToolController.php index d906e49..980a268 100755 --- a/src/Http/Controllers/FilemanagerToolController.php +++ b/src/Http/Controllers/FilemanagerToolController.php @@ -4,8 +4,8 @@ use Illuminate\Http\Request; use Illuminate\Routing\Controller; -use Infinety\Filemanager\Http\Services\FileManagerService; use Laravel\Nova\Http\Requests\NovaRequest; +use Infinety\Filemanager\Http\Services\FileManagerService; class FilemanagerToolController extends Controller { diff --git a/src/Http/Services/FileManagerService.php b/src/Http/Services/FileManagerService.php index 52410c3..a126000 100644 --- a/src/Http/Services/FileManagerService.php +++ b/src/Http/Services/FileManagerService.php @@ -3,10 +3,9 @@ namespace Infinety\Filemanager\Http\Services; use Illuminate\Http\Request; +use InvalidArgumentException; use Illuminate\Support\Facades\Storage; use Infinety\Filemanager\Exceptions\InvalidConfig; -use Infinety\Filemanager\Http\Services\NormalizeFile; -use InvalidArgumentException; class FileManagerService { @@ -72,7 +71,7 @@ public function ajaxGetFilesAndFolders(Request $request, $filter = false) { $folder = $this->cleanSlashes($request->get('folder')); - if (!$this->storage->exists($folder)) { + if (! $this->storage->exists($folder)) { $folder = '/'; } @@ -80,7 +79,7 @@ public function ajaxGetFilesAndFolders(Request $request, $filter = false) $this->setRelativePath($folder); $order = $request->get('sort'); - if (!$order) { + if (! $order) { $order = config('filemanager.order', 'mime'); } @@ -213,7 +212,7 @@ public function getFileInfo($file) */ public function getFileInfoAsArray($file) { - if (!$this->storage->exists($file)) { + if (! $this->storage->exists($file)) { return []; }