Completed
Push — master ( 7b4134...6183d2 )
by David
04:31
created
src/views/admin/forum/create.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 $fields = [
3
-    ['name' => 'description', 'type' => 'text'],
3
+    [ 'name' => 'description', 'type' => 'text' ],
4 4
     [
5 5
         'name' => 'category',
6 6
         'type' => 'select',
Please login to merge, or discard this patch.
src/Http/Controllers/AdminController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
         $data = $this->buildData();
27 27
 
28
-        $data['counts'] = [
28
+        $data[ 'counts' ] = [
29 29
             'forum' => (new Forum)->getCount(),
30 30
             'category' => (new ForumCategory)->getCount(),
31 31
             'post' => (new ForumPost)->getCount(),
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
         }
46 46
 
47 47
         $data = $this->buildData();
48
-        $data['categories'] = ForumCategory::all();
49
-        $data['forums'] = Forum::orderBy('category_id')->get();
48
+        $data[ 'categories' ] = ForumCategory::all();
49
+        $data[ 'forums' ] = Forum::orderBy('category_id')->get();
50 50
         return view('laravel-forum::admin/forums', $data);
51 51
     }
52 52
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         }
61 61
 
62 62
         $data = $this->buildData();
63
-        $data['categories'] = ForumCategory::all();
63
+        $data[ 'categories' ] = ForumCategory::all();
64 64
         return view('laravel-forum::admin/categories', $data);
65 65
     }
66 66
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         }
72 72
 
73 73
         $data = $this->buildData();
74
-        $data['categories'] = ForumCategory::all();
74
+        $data[ 'categories' ] = ForumCategory::all();
75 75
         return view('laravel-forum::admin.forum.create', $data);
76 76
     }
77 77
 }
Please login to merge, or discard this patch.