Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored and github-actions[bot] committed Aug 13, 2024
1 parent e54284f commit c0bc3a8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Screen/Actions/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ protected function getSlug(): string
* Sets a list of sub-menu items for this menu item.
*
* @param Actionable[] $list The array of sub-menu items.
*
* @return $this The current Menu instance for method chaining.
*/
public function list(array $list): self
Expand All @@ -151,7 +152,9 @@ public function list(array $list): self
* Builds and renders the menu view.
*
* @param Repository|null $repository The data repository to use for rendering.
*
* @throws \Throwable If rendering fails.
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View|mixed The rendered view.
*/
public function build(?Repository $repository = null)
Expand All @@ -163,7 +166,8 @@ public function build(?Repository $repository = null)
* Adds a badge to the menu item with a specific color.
*
* @param \Closure $badge The closure to generate the badge content.
* @param Color $color The color of the badge.
* @param Color $color The color of the badge.
*
* @return $this The current Menu instance for method chaining.
*/
public function badge(\Closure $badge, Color $color = Color::PRIMARY): self
Expand All @@ -180,6 +184,7 @@ public function badge(\Closure $badge, Color $color = Color::PRIMARY): self
* Sets the URL (href attribute) for the menu item.
*
* @param string $url The URL to set.
*
* @return $this The current Menu instance for method chaining.
*/
public function url(string $url): self
Expand All @@ -191,9 +196,10 @@ public function url(string $url): self
* Sets the permission(s) required to see the menu item.
*
* @param string|string[]|null $permission The required permission(s).
*
* @return $this The current Menu instance for method chaining.
*/
public function permission(string|iterable $permission = null): self
public function permission(string|iterable|null $permission = null): self
{
if ($permission !== null) {
$this->permit = false;
Expand Down Expand Up @@ -224,6 +230,7 @@ public function isSee(): bool
* Sets the title for the menu item.
*
* @param string|null $title The title to set.
*
* @return $this The current Menu instance for method chaining.
*/
public function title(?string $title = null): self
Expand All @@ -235,6 +242,7 @@ public function title(?string $title = null): self
* Sets the slug for the menu item.
*
* @param string $slug The slug to set.
*
* @return $this The current Menu instance for method chaining.
*/
public function slug(string $slug): self
Expand All @@ -246,6 +254,7 @@ public function slug(string $slug): self
* Sets the parent menu item for this menu item.
*
* @param string $parent The parent menu item slug or identifier.
*
* @return $this The current Menu instance for method chaining.
*/
public function parent(string $parent): self
Expand Down

0 comments on commit c0bc3a8

Please sign in to comment.