Skip to content

Commit

Permalink
Merge pull request #17 from hexadog/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
gaetan-hexadog committed Sep 6, 2023
2 parents d631d53 + 7d4b104 commit d28a7ab
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 14 deletions.
4 changes: 1 addition & 3 deletions src/Components/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ class Menu extends Component
/**
* Create the component instance.
*
* @param string $type
* @param string $message
* @param mixed $name
* @param mixed $name
*/
public function __construct($name)
{
Expand Down
5 changes: 2 additions & 3 deletions src/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,8 @@ public function parent()
/**
* Search item by key and value recursively.
*
* @param string $key
* @param string $value
* @param callable $callback
* @param string $key
* @param string $value
*
* @return mixed
*/
Expand Down
5 changes: 2 additions & 3 deletions src/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ public function __construct(string $name)
/**
* Search item by key and value recursively.
*
* @param string $key
* @param string $value
* @param callable $callback
* @param string $key
* @param string $value
*
* @return mixed
*/
Expand Down
5 changes: 1 addition & 4 deletions src/MenusManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ public function all(): array
/**
* Register a menu or get the existing one.
*
* @param string $name
* @param \Closure $callback
*
* @return \Hexadog\MenusManager\Menu
* @param string $name
*/
public function register($name): Menu
{
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HasItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function findBy(string $key, string $value): ?Item
*
* @return mixed
*/
public function findByTitleOrAdd(string|Closure $title, array $attributes = []): ?Item
public function findByTitleOrAdd(string|\Closure $title, array $attributes = []): ?Item
{
if (!($item = $this->findBy('title', $title instanceof Closure ? $title() : $title))) {
$item = $this->add(compact('title', 'attributes'));
Expand Down

0 comments on commit d28a7ab

Please sign in to comment.