Completed
Push — master ( 127f6d...7deb86 )
by Nicolas
10:35 queued 35s
created
src/MenuBuilder.php 1 patch
Doc Comments   +13 added lines, -11 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     /**
221 221
      * Determine if the given name in the presenter style.
222 222
      *
223
-     * @param $name
223
+     * @param string|null $name
224 224
      *
225 225
      * @return bool
226 226
      */
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      *
245 245
      * @param $name
246 246
      *
247
-     * @return mixed
247
+     * @return string
248 248
      */
249 249
     public function getStyle($name)
250 250
     {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     /**
257 257
      * Set new presenter class from given alias name.
258 258
      *
259
-     * @param $name
259
+     * @param string|null $name
260 260
      */
261 261
     public function setPresenterFromStyle($name)
262 262
     {
@@ -339,10 +339,10 @@  discard block
 block discarded – undo
339 339
      * Create new menu with dropdown.
340 340
      *
341 341
      * @param $title
342
-     * @param callable $callback
342
+     * @param \Closure $callback
343 343
      * @param array    $attributes
344 344
      *
345
-     * @return $this
345
+     * @return MenuItem
346 346
      */
347 347
     public function dropdown($title, \Closure $callback, $order = null, array $attributes = array())
348 348
     {
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
      * @param array $parameters
375 375
      * @param array $attributes
376 376
      *
377
-     * @return static
377
+     * @return MenuItem
378 378
      */
379 379
     public function route($route, $title, $parameters = array(), $order = null, $attributes = array())
380 380
     {
@@ -416,11 +416,11 @@  discard block
 block discarded – undo
416 416
     /**
417 417
      * Register new menu item using url.
418 418
      *
419
-     * @param $url
420
-     * @param $title
419
+     * @param string $url
420
+     * @param string $title
421 421
      * @param array $attributes
422 422
      *
423
-     * @return static
423
+     * @return MenuItem
424 424
      */
425 425
     public function url($url, $title, $order = 0, $attributes = array())
426 426
     {
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
      * Add new divider item.
448 448
      *
449 449
      * @param int $order
450
-     * @return \Nwidart\Menus\MenuItem
450
+     * @return MenuBuilder
451 451
      */
452 452
     public function addDivider($order = null)
453 453
     {
@@ -459,7 +459,8 @@  discard block
 block discarded – undo
459 459
     /**
460 460
      * Add new header item.
461 461
      *
462
-     * @return \Nwidart\Menus\MenuItem
462
+     * @param string $title
463
+     * @return MenuBuilder
463 464
      */
464 465
     public function addHeader($title, $order = null)
465 466
     {
@@ -543,6 +544,7 @@  discard block
 block discarded – undo
543 544
     /**
544 545
      * Render menu via view presenter.
545 546
      *
547
+     * @param string $presenter
546 548
      * @return \Illuminate\View\View
547 549
      */
548 550
     public function renderView($presenter = null)
Please login to merge, or discard this patch.