Test Failed
Push — master ( 241100...2372f3 )
by Stream
08:09 queued 10s
created
src/Controllers/ItemsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         $items = array_merge($this->lfm->folders(), $this->lfm->files());
23 23
 
24 24
         return [
25
-            'items' => array_map(function ($item) {
25
+            'items' => array_map(function($item) {
26 26
                 return $item->fill()->attributes;
27 27
             }, array_slice($items, ($currentPage - 1) * $perPage, $perPage)),
28 28
             'paginator' => [
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
     public function move()
39 39
     {
40 40
         $items = request('items');
41
-        $folder_types = array_filter(['user', 'share'], function ($type) {
41
+        $folder_types = array_filter([ 'user', 'share' ], function($type) {
42 42
             return $this->helper->allowFolderType($type);
43 43
         });
44 44
         return view('laravel-filemanager::move')
45 45
             ->with([
46
-                'root_folders' => array_map(function ($type) use ($folder_types) {
46
+                'root_folders' => array_map(function($type) use ($folder_types) {
47 47
                     $path = $this->lfm->dir($this->helper->getRootFolder($type));
48 48
 
49 49
                     return (object) [
50 50
                         'name' => trans('laravel-filemanager::lfm.title-' . $type),
51 51
                         'url' => $path->path('working_dir'),
52 52
                         'children' => $path->folders(),
53
-                        'has_next' => ! ($type == end($folder_types)),
53
+                        'has_next' => !($type == end($folder_types)),
54 54
                     ];
55 55
                 }, $folder_types),
56 56
             ])
Please login to merge, or discard this patch.