Completed
Pull Request — 2.0 (#31)
by Nicolas
18:46 queued 15:41
created
Http/Controllers/Admin/MenuItemController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @param Menu, $menuItemId
76
+     * @param Menu $menu
77 77
      * @return array
78 78
      */
79 79
     private function getMenuSelect($menu)
Please login to merge, or discard this patch.
Presenters/MenuPresenter.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@  discard block
 block discarded – undo
8 8
 
9 9
 class MenuPresenter extends Presenter
10 10
 {
11
+    /**
12
+     * @param MenuItem $item
13
+     */
11 14
     public function setLocale($item)
12 15
     {
13 16
         if (LaravelLocalization::hideDefaultLocaleInURL() === false) {
@@ -42,6 +45,7 @@  discard block
 block discarded – undo
42 45
 
43 46
     /**
44 47
      * {@inheritdoc }.
48
+     * @param MenuItem $item
45 49
      */
46 50
     public function getActiveState($item, $state = ' class="active"')
47 51
     {
@@ -51,7 +55,7 @@  discard block
 block discarded – undo
51 55
     /**
52 56
      * Get active state on child items.
53 57
      *
54
-     * @param $item
58
+     * @param MenuItem $item
55 59
      * @param string $state
56 60
      *
57 61
      * @return null|string
Please login to merge, or discard this patch.
Services/MenuItemUriGenerator.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * Get page slug
63 63
      * @param $id
64
-     * @param $lang
64
+     * @param string $lang
65 65
      * @return string
66 66
      */
67 67
     private function getPageSlug($id, $lang)
@@ -80,6 +80,7 @@  discard block
 block discarded – undo
80 80
      * Get parent uri
81 81
      *
82 82
      * @params $pageId, $lang
83
+     * @param string[] $linkPathArray
83 84
      * @return string
84 85
      */
85 86
     private function getParentUri($item, $linkPathArray)
Please login to merge, or discard this patch.