File tree 5 files changed +7
-14
lines changed
5 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ class Menu extends Component
25
25
/**
26
26
* Create the component instance.
27
27
*
28
- * @param string $type
29
- * @param string $message
30
- * @param mixed $name
28
+ * @param mixed $name
31
29
*/
32
30
public function __construct ($ name )
33
31
{
Original file line number Diff line number Diff line change @@ -331,9 +331,8 @@ public function parent()
331
331
/**
332
332
* Search item by key and value recursively.
333
333
*
334
- * @param string $key
335
- * @param string $value
336
- * @param callable $callback
334
+ * @param string $key
335
+ * @param string $value
337
336
*
338
337
* @return mixed
339
338
*/
Original file line number Diff line number Diff line change @@ -28,9 +28,8 @@ public function __construct(string $name)
28
28
/**
29
29
* Search item by key and value recursively.
30
30
*
31
- * @param string $key
32
- * @param string $value
33
- * @param callable $callback
31
+ * @param string $key
32
+ * @param string $value
34
33
*
35
34
* @return mixed
36
35
*/
Original file line number Diff line number Diff line change @@ -45,10 +45,7 @@ public function all(): array
45
45
/**
46
46
* Register a menu or get the existing one.
47
47
*
48
- * @param string $name
49
- * @param \Closure $callback
50
- *
51
- * @return \Hexadog\MenusManager\Menu
48
+ * @param string $name
52
49
*/
53
50
public function register ($ name ): Menu
54
51
{
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public function findBy(string $key, string $value): ?Item
69
69
*
70
70
* @return mixed
71
71
*/
72
- public function findByTitleOrAdd (string |Closure $ title , array $ attributes = []): ?Item
72
+ public function findByTitleOrAdd (string |\ Closure $ title , array $ attributes = []): ?Item
73
73
{
74
74
if (!($ item = $ this ->findBy ('title ' , $ title instanceof Closure ? $ title () : $ title ))) {
75
75
$ item = $ this ->add (compact ('title ' , 'attributes ' ));
You can’t perform that action at this time.
0 commit comments