Completed
Pull Request — master (#57)
by
unknown
01:32
created
src/MenuBuilder.php 1 patch
Doc Comments   +14 added lines, -12 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     /**
224 224
      * Determine if the given name in the presenter style.
225 225
      *
226
-     * @param $name
226
+     * @param string|null $name
227 227
      *
228 228
      * @return bool
229 229
      */
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      *
248 248
      * @param $name
249 249
      *
250
-     * @return mixed
250
+     * @return string
251 251
      */
252 252
     public function getStyle($name)
253 253
     {
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * Set new presenter class from given alias name.
261 261
      *
262
-     * @param $name
262
+     * @param string|null $name
263 263
      */
264 264
     public function setPresenterFromStyle($name)
265 265
     {
@@ -341,11 +341,11 @@  discard block
 block discarded – undo
341 341
     /**
342 342
      * Create new menu with dropdown.
343 343
      *
344
-     * @param $title
345
-     * @param callable $callback
344
+     * @param string $title
345
+     * @param \Closure $callback
346 346
      * @param array    $attributes
347 347
      *
348
-     * @return $this
348
+     * @return MenuItem
349 349
      */
350 350
     public function dropdown($title, \Closure $callback, $order = null, array $attributes = array())
351 351
     {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
      * @param array $parameters
378 378
      * @param array $attributes
379 379
      *
380
-     * @return static
380
+     * @return MenuItem
381 381
      */
382 382
     public function route($route, $title, $parameters = array(), $order = null, $attributes = array())
383 383
     {
@@ -419,11 +419,11 @@  discard block
 block discarded – undo
419 419
     /**
420 420
      * Register new menu item using url.
421 421
      *
422
-     * @param $url
423
-     * @param $title
422
+     * @param string $url
423
+     * @param string $title
424 424
      * @param array $attributes
425 425
      *
426
-     * @return static
426
+     * @return MenuItem
427 427
      */
428 428
     public function url($url, $title, $order = 0, $attributes = array())
429 429
     {
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
      * Add new divider item.
451 451
      *
452 452
      * @param int $order
453
-     * @return \Nwidart\Menus\MenuItem
453
+     * @return MenuBuilder
454 454
      */
455 455
     public function addDivider($order = null)
456 456
     {
@@ -462,7 +462,8 @@  discard block
 block discarded – undo
462 462
     /**
463 463
      * Add new header item.
464 464
      *
465
-     * @return \Nwidart\Menus\MenuItem
465
+     * @param string $title
466
+     * @return MenuBuilder
466 467
      */
467 468
     public function addHeader($title, $order = null)
468 469
     {
@@ -546,6 +547,7 @@  discard block
 block discarded – undo
546 547
     /**
547 548
      * Render menu via view presenter.
548 549
      *
550
+     * @param string $presenter
549 551
      * @return \Illuminate\View\View
550 552
      */
551 553
     public function renderView($presenter = null)
Please login to merge, or discard this patch.