@@ -30,7 +30,7 @@ |
||
30 | 30 | ->remember( |
31 | 31 | "{$this->locale}.{$this->entityName}.findByName.{$name}", |
32 | 32 | $this->cacheTime, |
33 | - function () use ($name) { |
|
33 | + function() use ($name) { |
|
34 | 34 | return $this->repository->findByName($name); |
35 | 35 | } |
36 | 36 | ); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | ->remember( |
28 | 28 | "{$this->locale}.{$this->entityName}.latest.{$amount}", |
29 | 29 | $this->cacheTime, |
30 | - function () use ($amount) { |
|
30 | + function() use ($amount) { |
|
31 | 31 | return $this->repository->latest($amount); |
32 | 32 | } |
33 | 33 | ); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | ->remember( |
48 | 48 | "{$this->locale}.{$this->entityName}.getPreviousOf.{$postId}", |
49 | 49 | $this->cacheTime, |
50 | - function () use ($post) { |
|
50 | + function() use ($post) { |
|
51 | 51 | return $this->repository->getPreviousOf($post); |
52 | 52 | } |
53 | 53 | ); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | ->remember( |
68 | 68 | "{$this->locale}.{$this->entityName}.getNextOf.{$postId}", |
69 | 69 | $this->cacheTime, |
70 | - function () use ($post) { |
|
70 | + function() use ($post) { |
|
71 | 71 | return $this->repository->getNextOf($post); |
72 | 72 | } |
73 | 73 | ); |
@@ -45,9 +45,9 @@ |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * Get the widget type |
|
49 | - * @return string |
|
50 | - */ |
|
48 | + * Get the widget type |
|
49 | + * @return string |
|
50 | + */ |
|
51 | 51 | protected function options() |
52 | 52 | { |
53 | 53 | return [ |
@@ -14,12 +14,12 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public function extendWith(\Maatwebsite\Sidebar\Menu $menu) |
16 | 16 | { |
17 | - $menu->group(trans('core::sidebar.content'), function (Group $group) { |
|
18 | - $group->item(trans('blog::blog.title'), function (Item $item) { |
|
17 | + $menu->group(trans('core::sidebar.content'), function(Group $group) { |
|
18 | + $group->item(trans('blog::blog.title'), function(Item $item) { |
|
19 | 19 | $item->icon('fa fa-copy'); |
20 | 20 | $item->weight(0); |
21 | 21 | |
22 | - $item->item(trans('blog::post.title.post'), function (Item $item) { |
|
22 | + $item->item(trans('blog::post.title.post'), function(Item $item) { |
|
23 | 23 | $item->icon('fa fa-copy'); |
24 | 24 | $item->weight(0); |
25 | 25 | $item->append('admin.blog.post.create'); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $this->auth->hasAccess('blog.posts.index') |
29 | 29 | ); |
30 | 30 | }); |
31 | - $item->item(trans('blog::tag.title.tag'), function (Item $item) { |
|
31 | + $item->item(trans('blog::tag.title.tag'), function(Item $item) { |
|
32 | 32 | $item->icon('fa fa-tags'); |
33 | 33 | $item->weight(0); |
34 | 34 | $item->append('admin.blog.tag.create'); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $this->auth->hasAccess('blog.tags.index') |
38 | 38 | ); |
39 | 39 | }); |
40 | - $item->item(trans('blog::category.title.category'), function (Item $item) { |
|
40 | + $item->item(trans('blog::category.title.category'), function(Item $item) { |
|
41 | 41 | $item->icon('fa fa-file-text'); |
42 | 42 | $item->weight(1); |
43 | 43 | $item->route('admin.blog.category.index'); |