diff --git a/src/Http/Services/FileManagerService.php b/src/Http/Services/FileManagerService.php index 7a66ad5..01e6e68 100644 --- a/src/Http/Services/FileManagerService.php +++ b/src/Http/Services/FileManagerService.php @@ -87,14 +87,14 @@ public function ajaxGetFilesAndFolders(Request $request) { $folder = $this->cleanSlashes($request->get('folder')); - if (!$this->folderExists($folder)) { + if (! $this->folderExists($folder)) { $folder = '/'; } $this->setRelativePath($folder); $order = $request->get('sort'); - if (!$order) { + if (! $order) { $order = config('filemanager.order', 'mime'); } @@ -189,7 +189,7 @@ public function uploadFile($file, $currentFolder, $visibility, $uploadingFolder if ($this->storage->putFileAs($currentFolder, $file, $fileName)) { $this->setVisibility($currentFolder, $fileName, $visibility); - if (!$uploadingFolder) { + if (! $uploadingFolder) { $this->checkJobs($this->storage, $currentFolder.$fileName); event(new FileUploaded($this->storage, $currentFolder.$fileName)); } @@ -206,7 +206,7 @@ public function uploadFile($file, $currentFolder, $visibility, $uploadingFolder */ public function downloadFile($file) { - if (!config('filemanager.buttons.download_file')) { + if (! config('filemanager.buttons.download_file')) { return response()->json(['success' => false, 'message' => 'File not available for Download'], 403); } @@ -245,7 +245,7 @@ public function getFileInfo($file) */ public function getFileInfoAsArray($file) { - if (!$this->storage->exists($file)) { + if (! $this->storage->exists($file)) { return []; }