@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | /** |
17 | 17 | * @var array |
18 | 18 | */ |
19 | - protected $menus = [ ]; |
|
19 | + protected $menus = []; |
|
20 | 20 | |
21 | 21 | |
22 | 22 | /** |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function init($name) |
33 | 33 | { |
34 | - if (! isset($this->menus[$name])) { |
|
34 | + if (!isset($this->menus[$name])) { |
|
35 | 35 | $this->menus[$name] = new Menu(); |
36 | 36 | } |
37 | 37 |
@@ -41,11 +41,11 @@ discard block |
||
41 | 41 | * @param string|null $label |
42 | 42 | * @param array $options |
43 | 43 | */ |
44 | - public function __construct($label = null, array $options = [ ]) |
|
44 | + public function __construct($label = null, array $options = []) |
|
45 | 45 | { |
46 | 46 | $this->label = $label; |
47 | 47 | $this->items = new Collection(); |
48 | - $this->options = array_merge([ 'weight' => 0, ], $options); |
|
48 | + $this->options = array_merge(['weight' => 0, ], $options); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * |
85 | 85 | * @return $this |
86 | 86 | */ |
87 | - public function link($item, $link, array $options = [ ]) |
|
87 | + public function link($item, $link, array $options = []) |
|
88 | 88 | { |
89 | 89 | $this->items()->push(new MenuItem($item, $link, $options)); |
90 | 90 |
@@ -36,11 +36,11 @@ |
||
36 | 36 | * @param $link |
37 | 37 | * @param array $options |
38 | 38 | */ |
39 | - public function __construct($label, $link, array $options = [ ]) |
|
39 | + public function __construct($label, $link, array $options = []) |
|
40 | 40 | { |
41 | 41 | $this->label = $label; |
42 | 42 | $this->link = $link; |
43 | - $this->options = array_merge([ 'weight' => 0, ], $options); |
|
43 | + $this->options = array_merge(['weight' => 0, ], $options); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function render(Menu $menu) |
27 | 27 | { |
28 | - $output = '<ul>'; |
|
28 | + $output = '<ul>'; |
|
29 | 29 | |
30 | 30 | foreach ($menu->items() as $item) { |
31 | 31 | if ($item instanceof Menu) { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function register() |
25 | 25 | { |
26 | - $this->app->singleton(Manager::class, function () { |
|
26 | + $this->app->singleton(Manager::class, function() { |
|
27 | 27 | return new Manager(); |
28 | 28 | }); |
29 | 29 | } |