@@ -87,14 +87,14 @@ public function ajaxGetFilesAndFolders(Request $request)
87
87
{
88
88
$ folder = $ this ->cleanSlashes ($ request ->get ('folder ' ));
89
89
90
- if (!$ this ->folderExists ($ folder )) {
90
+ if (! $ this ->folderExists ($ folder )) {
91
91
$ folder = '/ ' ;
92
92
}
93
93
94
94
$ this ->setRelativePath ($ folder );
95
95
96
96
$ order = $ request ->get ('sort ' );
97
- if (!$ order ) {
97
+ if (! $ order ) {
98
98
$ order = config ('filemanager.order ' , 'mime ' );
99
99
}
100
100
@@ -189,7 +189,7 @@ public function uploadFile($file, $currentFolder, $visibility, $uploadingFolder
189
189
if ($ this ->storage ->putFileAs ($ currentFolder , $ file , $ fileName )) {
190
190
$ this ->setVisibility ($ currentFolder , $ fileName , $ visibility );
191
191
192
- if (!$ uploadingFolder ) {
192
+ if (! $ uploadingFolder ) {
193
193
$ this ->checkJobs ($ this ->storage , $ currentFolder .$ fileName );
194
194
event (new FileUploaded ($ this ->storage , $ currentFolder .$ fileName ));
195
195
}
@@ -206,7 +206,7 @@ public function uploadFile($file, $currentFolder, $visibility, $uploadingFolder
206
206
*/
207
207
public function downloadFile ($ file )
208
208
{
209
- if (!config ('filemanager.buttons.download_file ' )) {
209
+ if (! config ('filemanager.buttons.download_file ' )) {
210
210
return response ()->json (['success ' => false , 'message ' => 'File not available for Download ' ], 403 );
211
211
}
212
212
@@ -245,7 +245,7 @@ public function getFileInfo($file)
245
245
*/
246
246
public function getFileInfoAsArray ($ file )
247
247
{
248
- if (!$ this ->storage ->exists ($ file )) {
248
+ if (! $ this ->storage ->exists ($ file )) {
249
249
return [];
250
250
}
251
251
0 commit comments