Skip to content

Commit d28a7ab

Browse files
Merge pull request #17 from hexadog/develop
Develop
2 parents d631d53 + 7d4b104 commit d28a7ab

File tree

5 files changed

+7
-14
lines changed

5 files changed

+7
-14
lines changed

Diff for: src/Components/Menu.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class Menu extends Component
2525
/**
2626
* Create the component instance.
2727
*
28-
* @param string $type
29-
* @param string $message
30-
* @param mixed $name
28+
* @param mixed $name
3129
*/
3230
public function __construct($name)
3331
{

Diff for: src/Item.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,8 @@ public function parent()
331331
/**
332332
* Search item by key and value recursively.
333333
*
334-
* @param string $key
335-
* @param string $value
336-
* @param callable $callback
334+
* @param string $key
335+
* @param string $value
337336
*
338337
* @return mixed
339338
*/

Diff for: src/Menu.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ public function __construct(string $name)
2828
/**
2929
* Search item by key and value recursively.
3030
*
31-
* @param string $key
32-
* @param string $value
33-
* @param callable $callback
31+
* @param string $key
32+
* @param string $value
3433
*
3534
* @return mixed
3635
*/

Diff for: src/MenusManager.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ public function all(): array
4545
/**
4646
* Register a menu or get the existing one.
4747
*
48-
* @param string $name
49-
* @param \Closure $callback
50-
*
51-
* @return \Hexadog\MenusManager\Menu
48+
* @param string $name
5249
*/
5350
public function register($name): Menu
5451
{

Diff for: src/Traits/HasItems.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function findBy(string $key, string $value): ?Item
6969
*
7070
* @return mixed
7171
*/
72-
public function findByTitleOrAdd(string|Closure $title, array $attributes = []): ?Item
72+
public function findByTitleOrAdd(string|\Closure $title, array $attributes = []): ?Item
7373
{
7474
if (!($item = $this->findBy('title', $title instanceof Closure ? $title() : $title))) {
7575
$item = $this->add(compact('title', 'attributes'));

0 commit comments

Comments
 (0)