Passed
Pull Request — master (#995)
by
unknown
03:00
created
src/Controllers/ItemsController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@  discard block
 block discarded – undo
24 24
         $perPage = $this->helper->getPaginationPerPage();
25 25
         $items = array_merge($this->lfm->folders(), $this->lfm->files());
26 26
 
27
-        $items = array_map(function ($item) {
27
+        $items = array_map(function($item) {
28 28
             return $item->fill()->attributes;
29 29
         }, array_slice($items, ($currentPage - 1) * $perPage, $perPage));
30 30
 
31 31
         if ($keyword != null) {
32 32
             $items = array_values(array_filter($items, function($item) use ($keyword) {
33
-                if ($this->like_match("%".$keyword."%", $item['name'])) {
33
+                if ($this->like_match("%" . $keyword . "%", $item[ 'name' ])) {
34 34
                     return true;
35 35
                 } else {
36 36
                     return false;
@@ -60,19 +60,19 @@  discard block
 block discarded – undo
60 60
     public function move()
61 61
     {
62 62
         $items = request('items');
63
-        $folder_types = array_filter(['user', 'share'], function ($type) {
63
+        $folder_types = array_filter([ 'user', 'share' ], function($type) {
64 64
             return $this->helper->allowFolderType($type);
65 65
         });
66 66
         return view('laravel-filemanager::move')
67 67
             ->with([
68
-                'root_folders' => array_map(function ($type) use ($folder_types) {
68
+                'root_folders' => array_map(function($type) use ($folder_types) {
69 69
                     $path = $this->lfm->dir($this->helper->getRootFolder($type));
70 70
 
71 71
                     return (object) [
72 72
                         'name' => trans('laravel-filemanager::lfm.title-' . $type),
73 73
                         'url' => $path->path('working_dir'),
74 74
                         'children' => $path->folders(),
75
-                        'has_next' => ! ($type == end($folder_types)),
75
+                        'has_next' => !($type == end($folder_types)),
76 76
                     ];
77 77
                 }, $folder_types),
78 78
             ])
Please login to merge, or discard this patch.