@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | $lfm_type = 'file'; |
| 76 | 76 | |
| 77 | 77 | $request_type = lcfirst(Str::singular($this->input('type') ?: '')); |
| 78 | - $available_types = array_keys($this->config->get('lfm.folder_categories') ?: []); |
|
| 78 | + $available_types = array_keys($this->config->get('lfm.folder_categories') ?: [ ]); |
|
| 79 | 79 | |
| 80 | 80 | if (in_array($request_type, $available_types)) { |
| 81 | 81 | $lfm_type = $request_type; |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $view_type = 'grid'; |
| 93 | 93 | $target_display_type = $this->input('show_list') ?: $startup_view; |
| 94 | 94 | |
| 95 | - if (in_array($target_display_type, ['list', 'grid'])) { |
|
| 95 | + if (in_array($target_display_type, [ 'list', 'grid' ])) { |
|
| 96 | 96 | $view_type = $target_display_type; |
| 97 | 97 | } |
| 98 | 98 | |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function allowShareFolder() |
| 178 | 178 | { |
| 179 | - if (! $this->allowMultiUser()) { |
|
| 179 | + if (!$this->allowMultiUser()) { |
|
| 180 | 180 | return true; |
| 181 | 181 | } |
| 182 | 182 | |
@@ -191,12 +191,12 @@ discard block |
||
| 191 | 191 | */ |
| 192 | 192 | public function translateFromUtf8($input) |
| 193 | 193 | { |
| 194 | - $rInput = []; |
|
| 194 | + $rInput = [ ]; |
|
| 195 | 195 | |
| 196 | 196 | if ($this->isRunningOnWindows()) { |
| 197 | 197 | if (is_array($input)) { |
| 198 | 198 | foreach ($input as $k => $i) { |
| 199 | - $rInput[] = iconv('UTF-8', mb_detect_encoding($i), $i); |
|
| 199 | + $rInput[ ] = iconv('UTF-8', mb_detect_encoding($i), $i); |
|
| 200 | 200 | } |
| 201 | 201 | } else { |
| 202 | 202 | $rInput = $input; |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | * @param mixed $variables Variables the message needs. |
| 241 | 241 | * @return string |
| 242 | 242 | */ |
| 243 | - public function error($error_type, $variables = []) |
|
| 243 | + public function error($error_type, $variables = [ ]) |
|
| 244 | 244 | { |
| 245 | 245 | throw new \Exception(trans(self::PACKAGE_NAME . '::lfm.error-' . $error_type, $variables)); |
| 246 | 246 | } |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | $as = 'unisharp.lfm.'; |
| 257 | 257 | $namespace = '\\UniSharp\\LaravelFilemanager\\Controllers\\'; |
| 258 | 258 | |
| 259 | - Route::group(compact('middleware', 'as', 'namespace'), function () { |
|
| 259 | + Route::group(compact('middleware', 'as', 'namespace'), function() { |
|
| 260 | 260 | |
| 261 | 261 | // display main layout |
| 262 | 262 | Route::get('/', [ |