| @@ -61,7 +61,7 @@ discard block | ||
| 61 | 61 | $path_parts = pathinfo($path); | 
| 62 | 62 | } | 
| 63 | 63 | |
| 64 | - return substr($path_parts[$part_name], 1); | |
| 64 | + return substr($path_parts[ $part_name ], 1); | |
| 65 | 65 | } | 
| 66 | 66 | |
| 67 | 67 | public function allowFolderType($type) | 
| @@ -90,7 +90,7 @@ discard block | ||
| 90 | 90 | $lfm_type = 'file'; | 
| 91 | 91 | |
| 92 | 92 |          $request_type = lcfirst(Str::singular($this->input('type') ?: '')); | 
| 93 | -        $available_types = array_keys($this->config->get('lfm.folder_categories') ?: []); | |
| 93 | +        $available_types = array_keys($this->config->get('lfm.folder_categories') ?: [ ]); | |
| 94 | 94 | |
| 95 | 95 |          if (in_array($request_type, $available_types)) { | 
| 96 | 96 | $lfm_type = $request_type; | 
| @@ -107,7 +107,7 @@ discard block | ||
| 107 | 107 | $view_type = 'grid'; | 
| 108 | 108 |          $target_display_type = $this->input('show_list') ?: $startup_view; | 
| 109 | 109 | |
| 110 | -        if (in_array($target_display_type, ['list', 'grid'])) { | |
| 110 | +        if (in_array($target_display_type, [ 'list', 'grid' ])) { | |
| 111 | 111 | $view_type = $target_display_type; | 
| 112 | 112 | } | 
| 113 | 113 | |
| @@ -212,7 +212,7 @@ discard block | ||
| 212 | 212 | */ | 
| 213 | 213 | public function allowShareFolder() | 
| 214 | 214 |      { | 
| 215 | -        if (! $this->allowMultiUser()) { | |
| 215 | +        if (!$this->allowMultiUser()) { | |
| 216 | 216 | return true; | 
| 217 | 217 | } | 
| 218 | 218 | |
| @@ -272,7 +272,7 @@ discard block | ||
| 272 | 272 | * @param mixed $variables Variables the message needs. | 
| 273 | 273 | * @return string | 
| 274 | 274 | */ | 
| 275 | - public function error($error_type, $variables = []) | |
| 275 | + public function error($error_type, $variables = [ ]) | |
| 276 | 276 |      { | 
| 277 | 277 | throw new \Exception(trans(self::PACKAGE_NAME . '::lfm.error-' . $error_type, $variables)); | 
| 278 | 278 | } | 
| @@ -288,7 +288,7 @@ discard block | ||
| 288 | 288 | $as = 'unisharp.lfm.'; | 
| 289 | 289 | $namespace = '\\UniSharp\\LaravelFilemanager\\Controllers\\'; | 
| 290 | 290 | |
| 291 | -        Route::group(compact('middleware', 'as', 'namespace'), function () { | |
| 291 | +        Route::group(compact('middleware', 'as', 'namespace'), function() { | |
| 292 | 292 | // display main layout | 
| 293 | 293 |              Route::get('/', [ | 
| 294 | 294 | 'uses' => 'LfmController@show', |