File tree Expand file tree Collapse file tree 5 files changed +7
-14
lines changed
Expand file tree Collapse file tree 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
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 {
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 ' ));
You can’t perform that action at this time.
0 commit comments