Completed
Push — master ( 7a68f4...7cee4d )
by Benjamin
28:12
created
Tests/Builder/MenuBuilderTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -74,6 +74,9 @@  discard block
 block discarded – undo
74 74
         $this->assertInstanceOf(MenuItem::class, $knpMenu);
75 75
     }
76 76
 
77
+    /**
78
+     * @param string $locale
79
+     */
77 80
     public function getMenuContext($locale)
78 81
     {
79 82
         $menuData = $this->getMenuData()[$locale];
@@ -103,6 +106,9 @@  discard block
 block discarded – undo
103 106
         return $menu;
104 107
     }
105 108
 
109
+    /**
110
+     * @param integer $i
111
+     */
106 112
     public function newItem(Menu $menu, $i, Item $parentItem = null)
107 113
     {
108 114
         $item = new Item();
Please login to merge, or discard this patch.
Menu/Menu.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     }
99 99
 
100 100
     /**
101
-     * @return array An array of available delete strategies
101
+     * @return string[] An array of available delete strategies
102 102
      */
103 103
     public static function getDeleteStrategiesAvailable()
104 104
     {
Please login to merge, or discard this patch.
Builder/MenuBuilder.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * The parameter $locale must be defined in your
59 59
      * symfony configuration file under parameters.
60 60
      *
61
-     * @param $locale String
61
+     * @param string $locale String
62 62
      *
63 63
      * @return $this
64 64
      */
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * Check if the machineName is valid.
91 91
      *
92
-     * @param $machineName
92
+     * @param string $machineName
93 93
      *
94 94
      * @return bool
95 95
      */
Please login to merge, or discard this patch.
Entity/Item.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * Get parent Item.
130 130
      *
131
-     * @return null\Item
131
+     * @return null|ItemInterface
132 132
      */
133 133
     public function getParent()
134 134
     {
@@ -138,7 +138,6 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * Set parent Item.
140 140
      *
141
-     * @param ItemInterface $menu
142 141
      *
143 142
      * @return self
144 143
      */
@@ -223,6 +222,7 @@  discard block
 block discarded – undo
223 222
      * Set name displayed in Item.
224 223
      *
225 224
      * @param string
225
+     * @param string $name
226 226
      *
227 227
      * @return self
228 228
      */
@@ -246,7 +246,6 @@  discard block
 block discarded – undo
246 246
     /**
247 247
      * Set URL.
248 248
      *
249
-     * @param string $url
250 249
      *
251 250
      * @return self
252 251
      */
Please login to merge, or discard this patch.
Entity/Menu.php 1 patch
Doc Comments   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,6 +88,7 @@  discard block
 block discarded – undo
88 88
      * Set the machineName the key for querying a menu.
89 89
      *
90 90
      * @param string
91
+     * @param string $machineName
91 92
      *
92 93
      * @return self
93 94
      */
@@ -101,7 +102,7 @@  discard block
 block discarded – undo
101 102
     /**
102 103
      * Get the name the value displayed to the administrator.
103 104
      *
104
-     * @return self
105
+     * @return string
105 106
      */
106 107
     public function getName()
107 108
     {
@@ -111,6 +112,7 @@  discard block
 block discarded – undo
111 112
     /**
112 113
      * Set the name the value displayed to the administrator.
113 114
      *
115
+     * @param string $name
114 116
      * @return self
115 117
      */
116 118
     public function setName($name)
@@ -169,9 +171,9 @@  discard block
 block discarded – undo
169 171
      *
170 172
      * @deprecated
171 173
      *
172
-     * @param null\ItemInterface $item
174
+     * @param ItemInterface $item
173 175
      *
174
-     * @return Item
176
+     * @return Menu
175 177
      */
176 178
     public function setItem(ItemInterface $item)
177 179
     {
@@ -181,9 +183,9 @@  discard block
 block discarded – undo
181 183
     /**
182 184
      * Set items for the menu.
183 185
      *
184
-     * @param null\ItemInterface $item
186
+     * @param ItemInterface $item
185 187
      *
186
-     * @return Item
188
+     * @return Menu
187 189
      */
188 190
     public function addItem(ItemInterface $item)
189 191
     {
@@ -206,6 +208,7 @@  discard block
 block discarded – undo
206 208
     /**
207 209
      * Set the locale language.
208 210
      *
211
+     * @param string $locale
209 212
      * @return self
210 213
      */
211 214
     public function setLocale($locale)
Please login to merge, or discard this patch.