@@ -31,13 +31,13 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |