Completed
Push — main ( ea559f...706bad )
by nassim
04:46 queued 12s
created
src/MenuBuilder.php 1 patch
Doc Comments   +11 added lines, -9 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
     {
@@ -341,10 +341,10 @@  discard block
 block discarded – undo
341 341
      * Create new menu with dropdown.
342 342
      *
343 343
      * @param $title
344
-     * @param callable $callback
344
+     * @param \Closure $callback
345 345
      * @param array    $attributes
346 346
      *
347
-     * @return $this
347
+     * @return MenuItem
348 348
      */
349 349
     public function dropdown($title, \Closure $callback, $order = null, array $attributes = array())
350 350
     {
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      * @param array $parameters
377 377
      * @param array $attributes
378 378
      *
379
-     * @return static
379
+     * @return MenuItem
380 380
      */
381 381
     public function route($route, $title, $parameters = array(), $order = null, $attributes = array())
382 382
     {
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
      * @param $title
423 423
      * @param array $attributes
424 424
      *
425
-     * @return static
425
+     * @return MenuItem
426 426
      */
427 427
     public function url($url, $title, $order = 0, $attributes = array())
428 428
     {
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
      * Add new divider item.
450 450
      *
451 451
      * @param int $order
452
-     * @return \Spinzar\Menu\MenuItem
452
+     * @return MenuBuilder
453 453
      */
454 454
     public function addDivider($order = null)
455 455
     {
@@ -461,7 +461,8 @@  discard block
 block discarded – undo
461 461
     /**
462 462
      * Add new header item.
463 463
      *
464
-     * @return \Spinzar\Menu\MenuItem
464
+     * @param string $title
465
+     * @return MenuBuilder
465 466
      */
466 467
     public function addHeader($title, $order = null)
467 468
     {
@@ -545,6 +546,7 @@  discard block
 block discarded – undo
545 546
     /**
546 547
      * Render menu via view presenter.
547 548
      *
549
+     * @param string $presenter
548 550
      * @return \Illuminate\View\View
549 551
      */
550 552
     public function renderView($presenter = null)
Please login to merge, or discard this patch.
src/Presenters/Admin/Adminlte.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * {@inheritdoc }.
35
+     * @param \Spinzar\Menu\MenuItem $item
35 36
      */
36 37
     public function getActiveState($item, $state = ' class="active"')
37 38
     {
@@ -41,7 +42,7 @@  discard block
 block discarded – undo
41 42
     /**
42 43
      * Get active state on child items.
43 44
      *
44
-     * @param $item
45
+     * @param \Spinzar\Menu\MenuItem $item
45 46
      * @param string $state
46 47
      *
47 48
      * @return null|string
Please login to merge, or discard this patch.
src/Presenters/Admin/Argon.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,6 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     /**
47 47
      * {@inheritdoc }.
48
+     * @param \Spinzar\Menu\MenuItem $item
48 49
      */
49 50
     public function getActiveState($item, $state = ' active')
50 51
     {
@@ -54,7 +55,7 @@  discard block
 block discarded – undo
54 55
     /**
55 56
      * Get active state on child items.
56 57
      *
57
-     * @param $item
58
+     * @param \Spinzar\Menu\MenuItem $item
58 59
      * @param string $state
59 60
      *
60 61
      * @return null|string
@@ -67,7 +68,7 @@  discard block
 block discarded – undo
67 68
     /**
68 69
      * Get active state on child items.
69 70
      *
70
-     * @param $item
71
+     * @param \Spinzar\Menu\MenuItem $item
71 72
      * @param string $state
72 73
      *
73 74
      * @return null|string
Please login to merge, or discard this patch.
src/Presenters/Bootstrap3/Navbar.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * {@inheritdoc }.
35
+     * @param \Spinzar\Menu\MenuItem $item
35 36
      */
36 37
     public function getActiveState($item, $state = ' class="active"')
37 38
     {
@@ -41,7 +42,7 @@  discard block
 block discarded – undo
41 42
     /**
42 43
      * Get active state on child items.
43 44
      *
44
-     * @param $item
45
+     * @param \Spinzar\Menu\MenuItem $item
45 46
      * @param string $state
46 47
      *
47 48
      * @return null|string
Please login to merge, or discard this patch.
src/Presenters/Bootstrap3/Sidebar.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * {@inheritdoc }.
35
+     * @param \Spinzar\Menu\MenuItem $item
35 36
      */
36 37
     public function getActiveState($item, $state = ' class="active"')
37 38
     {
@@ -41,7 +42,7 @@  discard block
 block discarded – undo
41 42
     /**
42 43
      * Get active state on child items.
43 44
      *
44
-     * @param $item
45
+     * @param \Spinzar\Menu\MenuItem $item
45 46
      * @param string $state
46 47
      *
47 48
      * @return null|string
Please login to merge, or discard this patch.