Passed
Branch master (9fdf3e)
by Mikael
01:46
created
src/Route/Route.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,9 +88,9 @@  discard block
 block discarded – undo
88 88
      * Check if value is matching a certain type of values.
89 89
      *
90 90
      * @param string $value   the value to check.
91
-     * @param array  $type    the expected type to check against.
91
+     * @param string  $type    the expected type to check against.
92 92
      *
93
-     * @return boolean
93
+     * @return boolean|null
94 94
      */
95 95
     private function checkPartMatchingType($value, $type)
96 96
     {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      * conversion accordingly.
124 124
      *
125 125
      * @param string $value   the value to check.
126
-     * @param array  $type    the expected type to check against.
126
+     * @param string|null  $type    the expected type to check against.
127 127
      *
128 128
      * @return boolean
129 129
      */
Please login to merge, or discard this patch.
src/Route/RouterInjectable.php 1 patch
Doc Comments   +2 added lines, -6 removed lines patch added patch discarded remove patch
@@ -185,7 +185,6 @@  discard block
 block discarded – undo
185 185
     /**
186 186
      * Shortcut to add a GET route.
187 187
      *
188
-     * @param null|string|array    $method as request methods
189 188
      * @param null|string|callable $action a callback handler for the route.
190 189
      *
191 190
      * @return class|array as new route(s), class if one added, else array.
@@ -200,7 +199,6 @@  discard block
 block discarded – undo
200 199
     /**
201 200
     * Shortcut to add a POST route.
202 201
      *
203
-     * @param null|string|array    $method as request methods
204 202
      * @param null|string|callable $action a callback handler for the route.
205 203
      *
206 204
      * @return class|array as new route(s), class if one added, else array.
@@ -215,7 +213,6 @@  discard block
 block discarded – undo
215 213
     /**
216 214
     * Shortcut to add a PUT route.
217 215
      *
218
-     * @param null|string|array    $method as request methods
219 216
      * @param null|string|callable $action a callback handler for the route.
220 217
      *
221 218
      * @return class|array as new route(s), class if one added, else array.
@@ -230,7 +227,6 @@  discard block
 block discarded – undo
230 227
     /**
231 228
     * Shortcut to add a DELETE route.
232 229
      *
233
-     * @param null|string|array    $method as request methods
234 230
      * @param null|string|callable $action a callback handler for the route.
235 231
      *
236 232
      * @return class|array as new route(s), class if one added, else array.
@@ -249,7 +245,7 @@  discard block
 block discarded – undo
249 245
      * @param string               $rule   for this route
250 246
      * @param null|string|callable $action a callback handler for the route.
251 247
      *
252
-     * @return class|array as new route(s), class if one added, else array.
248
+     * @return Route as new route(s), class if one added, else array.
253 249
      */
254 250
     public function addInternal($rule, $action)
255 251
     {
@@ -264,7 +260,7 @@  discard block
 block discarded – undo
264 260
     /**
265 261
      * Get the route for the last route that was handled.
266 262
      *
267
-     * @return mixed
263
+     * @return string
268 264
      */
269 265
     public function getLastRoute()
270 266
     {
Please login to merge, or discard this patch.