Skip to content

Commit

Permalink
Merge pull request #135 from InfinetyEs/analysis-jL70MG
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
Krato authored Jun 8, 2020
2 parents f9c98f0 + 7dda230 commit 7cac8eb
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 7cac8eb

Please sign in to comment.