@@ -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 | |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | |
245 | 245 | if (is_array($input)) { |
246 | 246 | foreach ($input as $k => $i) { |
247 | - $rInput[] = iconv('UTF-8', mb_detect_encoding($i), $i); |
|
247 | + $rInput[ ] = iconv('UTF-8', mb_detect_encoding($i), $i); |
|
248 | 248 | } |
249 | 249 | } else { |
250 | 250 | $rInput = $input; |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | * @param mixed $variables Variables the message needs. |
290 | 290 | * @return string |
291 | 291 | */ |
292 | - public function error($error_type, $variables = []) |
|
292 | + public function error($error_type, $variables = [ ]) |
|
293 | 293 | { |
294 | 294 | throw new \Exception(trans(self::PACKAGE_NAME . '::lfm.error-' . $error_type, $variables)); |
295 | 295 | } |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | $as = 'unisharp.lfm.'; |
306 | 306 | $namespace = '\\UniSharp\\LaravelFilemanager\\Controllers\\'; |
307 | 307 | |
308 | - Route::group(compact('middleware', 'as', 'namespace'), function () { |
|
308 | + Route::group(compact('middleware', 'as', 'namespace'), function() { |
|
309 | 309 | // display main layout |
310 | 310 | Route::get('/', [ |
311 | 311 | 'uses' => 'LfmController@show', |