@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php namespace Taskforcedev\LaravelForum\Http\Controllers; |
2 | 2 | |
3 | 3 | use \Schema; |
4 | -use Illuminate\Http\Request; |
|
5 | 4 | use Taskforcedev\LaravelForum\Models\Forum; |
6 | 5 | use Taskforcedev\LaravelForum\Models\ForumPost; |
7 | 6 | use Taskforcedev\LaravelForum\Models\ForumReply; |
@@ -44,15 +44,15 @@ |
||
44 | 44 | * Builds data required for views. |
45 | 45 | * @return array |
46 | 46 | */ |
47 | - protected function buildData($data = []) |
|
47 | + protected function buildData($data = [ ]) |
|
48 | 48 | { |
49 | - $data['user'] = $this->getUser(); |
|
50 | - $data['layout'] = $this->getLayout(); |
|
51 | - $data['categories'] = ForumCategory::with('forums')->get(); |
|
52 | - $data['sitename'] = $this->getSitename(); |
|
53 | - $data['wysiwyg'] = config('laravel-forum.wysiwyg'); |
|
54 | - $data['sanitizer'] = $this->sanitizer; |
|
55 | - $data['userHelper'] = new UserHelper(); |
|
49 | + $data[ 'user' ] = $this->getUser(); |
|
50 | + $data[ 'layout' ] = $this->getLayout(); |
|
51 | + $data[ 'categories' ] = ForumCategory::with('forums')->get(); |
|
52 | + $data[ 'sitename' ] = $this->getSitename(); |
|
53 | + $data[ 'wysiwyg' ] = config('laravel-forum.wysiwyg'); |
|
54 | + $data[ 'sanitizer' ] = $this->sanitizer; |
|
55 | + $data[ 'userHelper' ] = new UserHelper(); |
|
56 | 56 | |
57 | 57 | return $data; |
58 | 58 | } |
@@ -31,11 +31,11 @@ discard block |
||
31 | 31 | { |
32 | 32 | // Publish Config |
33 | 33 | $this->publishes([ |
34 | - __DIR__ . '/../config/laravel-forum.php' => config_path('laravel-forum.php'), |
|
34 | + __DIR__.'/../config/laravel-forum.php' => config_path('laravel-forum.php'), |
|
35 | 35 | ], 'config'); |
36 | 36 | |
37 | 37 | $this->mergeConfigFrom( |
38 | - __DIR__ . '/../config/laravel-forum.php', |
|
38 | + __DIR__.'/../config/laravel-forum.php', |
|
39 | 39 | 'laravel-forum' |
40 | 40 | ); |
41 | 41 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function views() |
56 | 56 | { |
57 | - $this->loadViewsFrom(__DIR__ . '/../resources/views', 'laravel-forum'); |
|
57 | + $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-forum'); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | public function routes() |
64 | 64 | { |
65 | - require __DIR__ . '/Http/routes.php'; |
|
65 | + require __DIR__.'/Http/routes.php'; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -70,6 +70,6 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function migrations() |
72 | 72 | { |
73 | - $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); |
|
73 | + $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
|
74 | 74 | } |
75 | 75 | } |