Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Lagarda committed Jun 9, 2020
2 parents d899d8c + 7cac8eb commit b6b03eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Http/Services/FileManagerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down Expand Up @@ -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));
}
Expand All @@ -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);
}

Expand Down Expand Up @@ -245,7 +245,7 @@ public function getFileInfo($file)
*/
public function getFileInfoAsArray($file)
{
if (!$this->storage->exists($file)) {
if (! $this->storage->exists($file)) {
return [];
}

Expand Down

0 comments on commit b6b03eb

Please sign in to comment.