Completed
Pull Request — 2.0 (#54)
by
unknown
05:48
created
Providers/BlogServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@  discard block
 block discarded – undo
41 41
     public function boot()
42 42
     {
43 43
         $this->publishes([
44
-            __DIR__ . '/../Resources/views' => base_path('resources/views/asgard/blog'),
44
+            __DIR__.'/../Resources/views' => base_path('resources/views/asgard/blog'),
45 45
         ]);
46 46
 
47 47
         $this->publishConfig('blog', 'config');
48 48
         $this->publishConfig('blog', 'permissions');
49 49
         $this->publishConfig('blog', 'settings');
50
-        $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');
50
+        $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');
51 51
 
52 52
         $this->registerThumbnails();
53 53
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     private function registerBindings()
66 66
     {
67
-        $this->app->bind(PostRepository::class, function () {
67
+        $this->app->bind(PostRepository::class, function() {
68 68
             $repository = new EloquentPostRepository(new Post());
69 69
 
70 70
             if (config('app.cache') === false) {
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             return new CachePostDecorator($repository);
75 75
         });
76 76
 
77
-        $this->app->bind(CategoryRepository::class, function () {
77
+        $this->app->bind(CategoryRepository::class, function() {
78 78
             $repository = new EloquentCategoryRepository(new Category());
79 79
 
80 80
             if (config('app.cache') === false) {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             return new CacheCategoryDecorator($repository);
85 85
         });
86 86
 
87
-        $this->app->bind(TagRepository::class, function () {
87
+        $this->app->bind(TagRepository::class, function() {
88 88
             $repository = new EloquentTagRepository(new Tag());
89 89
 
90 90
             if (config('app.cache') === false) {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             'fit' => [
102 102
                 'width' => '150',
103 103
                 'height' => '150',
104
-                'callback' => function ($constraint) {
104
+                'callback' => function($constraint) {
105 105
                     $constraint->upsize();
106 106
                 },
107 107
             ],
Please login to merge, or discard this patch.
Sidebar/SidebarExtender.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function extendWith(Menu $menu)
33 33
     {
34
-        $menu->group(trans('core::sidebar.content'), function (Group $group) {
35
-            $group->item(trans('blog::blog.title'), function (Item $item) {
34
+        $menu->group(trans('core::sidebar.content'), function(Group $group) {
35
+            $group->item(trans('blog::blog.title'), function(Item $item) {
36 36
 
37 37
                 $item->icon('fa fa-copy');
38 38
                 $item->weight(0);
39 39
 
40
-                $item->item(trans('blog::post.title.post'), function (Item $item) {
40
+                $item->item(trans('blog::post.title.post'), function(Item $item) {
41 41
                     $item->icon('fa fa-copy');
42 42
                     $item->weight(0);
43 43
                     $item->append('admin.blog.post.create');
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                         $this->auth->hasAccess('blog.posts.index')
47 47
                     );
48 48
                 });
49
-                $item->item(trans('blog::tag.title.tag'), function (Item $item) {
49
+                $item->item(trans('blog::tag.title.tag'), function(Item $item) {
50 50
                     $item->icon('fa fa-tags');
51 51
                     $item->weight(0);
52 52
                     $item->append('admin.blog.tag.create');
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                         $this->auth->hasAccess('blog.tags.index')
56 56
                     );
57 57
                 });
58
-                $item->item(trans('blog::category.title.category'), function (Item $item) {
58
+                $item->item(trans('blog::category.title.category'), function(Item $item) {
59 59
                     $item->icon('fa fa-file-text');
60 60
                     $item->weight(1);
61 61
                     $item->route('admin.blog.category.index');
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                     );
66 66
                 });
67 67
 
68
-                $authorizedItemCount = $item->getItems()->filter(function (Item $item) {
68
+                $authorizedItemCount = $item->getItems()->filter(function(Item $item) {
69 69
                     return $item->isAuthorized();
70 70
                 })->count();
71 71
 
Please login to merge, or discard this patch.