@@ -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 | |
@@ -274,9 +274,9 @@ discard block |
||
274 | 274 | public function convertCyrillicToLatin($file_name) |
275 | 275 | { |
276 | 276 | $cyr = [ |
277 | - 'ж', 'ч', 'щ', 'ш', 'ю', 'а', 'б', 'в', 'г', 'д', 'е', 'з', 'и', 'й', |
|
277 | + 'ж', 'ч', 'щ', 'ш', 'ю', 'а', 'б', 'в', 'г', 'д', 'е', 'з', 'и', 'й', |
|
278 | 278 | 'к', 'л', 'м', 'н', 'о', 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ъ', 'ь', 'я', |
279 | - 'Ж', 'Ч', 'Щ', 'Ш', 'Ю', 'А', 'Б', 'В', 'Г', 'Д', 'Е', 'З', 'И', 'Й', 'К', |
|
279 | + 'Ж', 'Ч', 'Щ', 'Ш', 'Ю', 'А', 'Б', 'В', 'Г', 'Д', 'Е', 'З', 'И', 'Й', 'К', |
|
280 | 280 | 'Л', 'М', 'Н', 'О', 'П', 'Р', 'С', 'Т', 'У', 'Ф', 'Х', 'Ц', 'Ъ', 'Ь', 'Я' |
281 | 281 | ]; |
282 | 282 | |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | * @param mixed $variables Variables the message needs. |
298 | 298 | * @return string |
299 | 299 | */ |
300 | - public function error($error_type, $variables = []) |
|
300 | + public function error($error_type, $variables = [ ]) |
|
301 | 301 | { |
302 | 302 | throw new \Exception(trans(self::PACKAGE_NAME . '::lfm.error-' . $error_type, $variables)); |
303 | 303 | } |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | $as = 'unisharp.lfm.'; |
314 | 314 | $namespace = '\\UniSharp\\LaravelFilemanager\\Controllers\\'; |
315 | 315 | |
316 | - Route::group(compact('middleware', 'as', 'namespace'), function () { |
|
316 | + Route::group(compact('middleware', 'as', 'namespace'), function() { |
|
317 | 317 | |
318 | 318 | // display main layout |
319 | 319 | Route::get('/', [ |