Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
Krato authored and StyleCIBot committed Jun 8, 2020
1 parent f9c98f0 commit 7dda230
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 7dda230

Please sign in to comment.