Code Duplication    Length = 9-9 lines in 3 locations

Sidebar/SidebarExtender.php 3 locations

@@ 38-46 (lines=9) @@
35
                $item->icon('fa fa-copy');
36
                $item->weight(0);
37
38
                $item->item(trans('blog::post.title.post'), function (Item $item) {
39
                    $item->icon('fa fa-copy');
40
                    $item->weight(0);
41
                    $item->append('admin.blog.post.create');
42
                    $item->route('admin.blog.post.index');
43
                    $item->authorize(
44
                        $this->auth->hasAccess('blog.posts.index')
45
                    );
46
                });
47
                $item->item(trans('blog::tag.title.tag'), function (Item $item) {
48
                    $item->icon('fa fa-tags');
49
                    $item->weight(0);
@@ 47-55 (lines=9) @@
44
                        $this->auth->hasAccess('blog.posts.index')
45
                    );
46
                });
47
                $item->item(trans('blog::tag.title.tag'), function (Item $item) {
48
                    $item->icon('fa fa-tags');
49
                    $item->weight(0);
50
                    $item->append('admin.blog.tag.create');
51
                    $item->route('admin.blog.tag.index');
52
                    $item->authorize(
53
                        $this->auth->hasAccess('blog.tags.index')
54
                    );
55
                });
56
                $item->item(trans('blog::category.title.category'), function (Item $item) {
57
                    $item->icon('fa fa-file-text');
58
                    $item->weight(1);
@@ 56-64 (lines=9) @@
53
                        $this->auth->hasAccess('blog.tags.index')
54
                    );
55
                });
56
                $item->item(trans('blog::category.title.category'), function (Item $item) {
57
                    $item->icon('fa fa-file-text');
58
                    $item->weight(1);
59
                    $item->route('admin.blog.category.index');
60
                    $item->append('admin.blog.category.create');
61
                    $item->authorize(
62
                        $this->auth->hasAccess('blog.categories.index')
63
                    );
64
                });
65
                $item->authorize(
66
                    $this->auth->hasAccess('blog.tags.index') || $this->auth->hasAccess('blog.posts.index') || $this->auth->hasAccess('blog.categories.index')
67
                );