@@ -47,15 +47,15 @@ discard block |
||
47 | 47 | $items = array_merge($this->lfm->folders(), $this->lfm->files()); |
48 | 48 | } |
49 | 49 | |
50 | - $items = array_map(function ($item) { |
|
50 | + $items = array_map(function($item) { |
|
51 | 51 | return $item->fill()->attributes; |
52 | 52 | }, $items); |
53 | 53 | |
54 | 54 | $keyword = request()->get('keyword', ""); |
55 | 55 | |
56 | 56 | if (!empty($keyword)) { |
57 | - $items = array_values(array_filter($items, function ($item) use ($keyword) { |
|
58 | - if ($this->like_match("%" . $keyword . "%", $item['name'])) { |
|
57 | + $items = array_values(array_filter($items, function($item) use ($keyword) { |
|
58 | + if ($this->like_match("%" . $keyword . "%", $item[ 'name' ])) { |
|
59 | 59 | return TRUE; |
60 | 60 | } else { |
61 | 61 | return FALSE; |
@@ -87,13 +87,13 @@ discard block |
||
87 | 87 | public function move() |
88 | 88 | { |
89 | 89 | $items = request('items'); |
90 | - $folder_types = array_filter(['user', 'share'], function ($type) { |
|
90 | + $folder_types = array_filter([ 'user', 'share' ], function($type) { |
|
91 | 91 | return $this->helper->allowFolderType($type); |
92 | 92 | }); |
93 | 93 | |
94 | 94 | return view('laravel-filemanager::move') |
95 | 95 | ->with([ |
96 | - 'root_folders' => array_map(function ($type) use ($folder_types) { |
|
96 | + 'root_folders' => array_map(function($type) use ($folder_types) { |
|
97 | 97 | $path = $this->lfm->dir($this->helper->getRootFolder($type)); |
98 | 98 | |
99 | 99 | return (object) [ |
@@ -114,10 +114,10 @@ |
||
114 | 114 | 'over_write_on_duplicate' => false, |
115 | 115 | |
116 | 116 | // mimetypes of executables to prevent from uploading |
117 | - 'disallowed_mimetypes' => ['text/x-php', 'text/html', 'text/plain'], |
|
117 | + 'disallowed_mimetypes' => [ 'text/x-php', 'text/html', 'text/plain' ], |
|
118 | 118 | |
119 | 119 | // Item Columns |
120 | - 'item_columns' => ['name', 'url', 'time', 'icon', 'is_file', 'is_image', 'thumb_url'], |
|
120 | + 'item_columns' => [ 'name', 'url', 'time', 'icon', 'is_file', 'is_image', 'thumb_url' ], |
|
121 | 121 | |
122 | 122 | // Sorting : available : default (name) | time |
123 | 123 | 'default_sort' => 'time', |