Skip to content

Commit 428819b

Browse files
simonhampgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 0e2429f commit 428819b

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

src/Facades/Menu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use Illuminate\Support\Facades\Facade;
66

77
/**
8-
* @method static void create()
9-
*/
8+
* @method static void create()
9+
*/
1010
class Menu extends Facade
1111
{
1212
protected static function getFacadeAccessor()

src/Menu/Menu.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
use Illuminate\Support\Traits\Conditionable;
66
use Native\Laravel\Client\Client;
77
use Native\Laravel\Contracts\MenuItem;
8-
use Native\Laravel\Enums\RolesEnum;
9-
use Native\Laravel\Menu\Items\Checkbox;
10-
use Native\Laravel\Menu\Items\Event;
11-
use Native\Laravel\Menu\Items\Label;
12-
use Native\Laravel\Menu\Items\Link;
13-
use Native\Laravel\Menu\Items\Role;
14-
use Native\Laravel\Menu\Items\Separator;
158

169
class Menu implements MenuItem
1710
{

src/Menu/MenuBuilder.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Native\Laravel\Client\Client;
66
use Native\Laravel\Contracts\MenuItem;
77
use Native\Laravel\Enums\RolesEnum;
8-
use Native\Laravel\Menu\Items;
98

109
class MenuBuilder
1110
{
@@ -21,7 +20,7 @@ public function make(MenuItem ...$items): Menu
2120

2221
return $menu;
2322
}
24-
23+
2524
public function create(MenuItem ...$items): void
2625
{
2726
$this->make(...$items)
@@ -44,12 +43,12 @@ public function label(): Items\Label
4443
return new Items\Label($label);
4544
}
4645

47-
public function goToUrl(string $url, string $label = null, ?string $hotkey = null): Items\GoToUrl
46+
public function goToUrl(string $url, ?string $label = null, ?string $hotkey = null): Items\GoToUrl
4847
{
4948
return new Items\GoToUrl($url, $label, $hotkey);
5049
}
5150

52-
public function goToRoute(string $route, string $label = null, ?string $hotkey = null): Items\GoToUrl
51+
public function goToRoute(string $route, ?string $label = null, ?string $hotkey = null): Items\GoToUrl
5352
{
5453
return new Items\GoToUrl(route($route), $label, $hotkey);
5554
}
@@ -59,12 +58,12 @@ public function checkbox(string $label, bool $checked = false, ?string $hotkey =
5958
return new Items\Checkbox($label, $checked, $hotkey);
6059
}
6160

62-
public function event(string $event, string $label = null, ?string $hotkey = null): Items\Event
61+
public function event(string $event, ?string $label = null, ?string $hotkey = null): Items\Event
6362
{
6463
return new Items\Event($event, $label, $hotkey);
6564
}
6665

67-
public function link(string $url, string $label = null, ?string $hotkey = null): Items\Link
66+
public function link(string $url, ?string $label = null, ?string $hotkey = null): Items\Link
6867
{
6968
return new Items\Link($url, $label, $hotkey);
7069
}

0 commit comments

Comments
 (0)