Completed
Pull Request — 2.0 (#31)
by Nicolas
03:43
created
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.
Http/Controllers/Admin/MenuItemController.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 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)
@@ -143,6 +143,7 @@  discard block
 block discarded – undo
143 143
      * Get page slug
144 144
      *
145 145
      * @params $pageId, $lang
146
+     * @param string $lang
146 147
      * @return string
147 148
      */
148 149
     private function getPageSlug($id, $lang)
@@ -161,6 +162,7 @@  discard block
 block discarded – undo
161 162
      * Get parent uri
162 163
      *
163 164
      * @params $pageId, $lang
165
+     * @param string[] $linkPathArray
164 166
      * @return string
165 167
      */
166 168
     private function getParentUri($item, $linkPathArray)
Please login to merge, or discard this patch.