@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | public function it_can_create_a_dropdown_menu_item() |
107 | 107 | { |
108 | 108 | $menuItem = MenuItem::make(['title' => 'Parent Item']); |
109 | - $menuItem->dropdown('Dropdown item', function (MenuItem $sub) { |
|
109 | + $menuItem->dropdown('Dropdown item', function(MenuItem $sub) { |
|
110 | 110 | $sub->url('settings/account', 'Account'); |
111 | 111 | $sub->url('settings/password', 'Password'); |
112 | 112 | }); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | public function it_can_make_a_simple_route_menu_item() |
119 | 119 | { |
120 | 120 | $menuItem = MenuItem::make(['title' => 'Parent Item']); |
121 | - $menuItem->dropdown('Dropdown item', function (MenuItem $sub) { |
|
121 | + $menuItem->dropdown('Dropdown item', function(MenuItem $sub) { |
|
122 | 122 | $sub->route('settings.account', 'Account', ['user_id' => 1]); |
123 | 123 | }); |
124 | 124 | $children = $menuItem->getChildren()[0]->getChilds(); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | public function it_can_make_a_route_menu_item() |
134 | 134 | { |
135 | 135 | $menuItem = MenuItem::make(['title' => 'Parent Item']); |
136 | - $menuItem->dropdown('Dropdown item', function (MenuItem $sub) { |
|
136 | + $menuItem->dropdown('Dropdown item', function(MenuItem $sub) { |
|
137 | 137 | $sub->route('settings.account', 'Account', ['user_id' => 1], 1, ['my-attr' => 'value']); |
138 | 138 | }); |
139 | 139 | $children = $menuItem->getChildren()[0]->getChilds(); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | public function it_can_make_a_simple_url_menu_item() |
151 | 151 | { |
152 | 152 | $menuItem = MenuItem::make(['title' => 'Parent Item']); |
153 | - $menuItem->dropdown('Dropdown item', function (MenuItem $sub) { |
|
153 | + $menuItem->dropdown('Dropdown item', function(MenuItem $sub) { |
|
154 | 154 | $sub->url('settings/account', 'Account'); |
155 | 155 | }); |
156 | 156 | $children = $menuItem->getChildren()[0]->getChilds(); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | public function it_can_make_a_url_menu_item() |
166 | 166 | { |
167 | 167 | $menuItem = MenuItem::make(['title' => 'Parent Item']); |
168 | - $menuItem->dropdown('Dropdown item', function (MenuItem $sub) { |
|
168 | + $menuItem->dropdown('Dropdown item', function(MenuItem $sub) { |
|
169 | 169 | $sub->url('settings/account', 'Account', 1, ['my-attr' => 'value']); |
170 | 170 | }); |
171 | 171 | $children = $menuItem->getChildren()[0]->getChilds(); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | public function it_can_add_a_menu_item_divider() |
183 | 183 | { |
184 | 184 | $menuItem = MenuItem::make(['title' => 'Parent Item']); |
185 | - $menuItem->dropdown('Dropdown item', function (MenuItem $sub) { |
|
185 | + $menuItem->dropdown('Dropdown item', function(MenuItem $sub) { |
|
186 | 186 | $sub->url('settings/account', 'Account'); |
187 | 187 | $sub->divider(); |
188 | 188 | }); |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | public function it_can_add_a_header_menu_item() |
200 | 200 | { |
201 | 201 | $menuItem = MenuItem::make(['title' => 'Parent Item']); |
202 | - $menuItem->dropdown('Dropdown item', function (MenuItem $sub) { |
|
202 | + $menuItem->dropdown('Dropdown item', function(MenuItem $sub) { |
|
203 | 203 | $sub->header('User Stuff'); |
204 | 204 | $sub->url('settings/account', 'Account'); |
205 | 205 | }); |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | { |
227 | 227 | $this->app['router']->get('settings/account', ['as' => 'settings.account']); |
228 | 228 | $menuItem = MenuItem::make(['title' => 'Parent Item']); |
229 | - $menuItem->dropdown('Dropdown item', function (MenuItem $sub) { |
|
229 | + $menuItem->dropdown('Dropdown item', function(MenuItem $sub) { |
|
230 | 230 | $sub->route('settings.account', 'Account'); |
231 | 231 | }); |
232 | 232 | $children = $menuItem->getChildren()[0]->getChilds(); |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | public function it_can_check_for_a_submenu() |
288 | 288 | { |
289 | 289 | $menuItem = MenuItem::make(['title' => 'Parent Item']); |
290 | - $menuItem->dropdown('Dropdown item', function (MenuItem $sub) { |
|
290 | + $menuItem->dropdown('Dropdown item', function(MenuItem $sub) { |
|
291 | 291 | $sub->header('User Stuff'); |
292 | 292 | $sub->url('settings/account', 'Account'); |
293 | 293 | }); |