Passed
Push — master ( 71aeb5...466fc7 )
by Mikael
01:35
created
src/Route/RouterInjectable.php 1 patch
Doc Comments   +2 added lines, -6 removed lines patch added patch discarded remove patch
@@ -143,7 +143,6 @@  discard block
 block discarded – undo
143 143
     /**
144 144
      * Shortcut to add a GET route.
145 145
      *
146
-     * @param null|string|array    $method as request methods
147 146
      * @param null|string|callable $action a callback handler for the route.
148 147
      *
149 148
      * @return class|array as new route(s), class if one added, else array.
@@ -158,7 +157,6 @@  discard block
 block discarded – undo
158 157
     /**
159 158
     * Shortcut to add a POST route.
160 159
      *
161
-     * @param null|string|array    $method as request methods
162 160
      * @param null|string|callable $action a callback handler for the route.
163 161
      *
164 162
      * @return class|array as new route(s), class if one added, else array.
@@ -173,7 +171,6 @@  discard block
 block discarded – undo
173 171
     /**
174 172
     * Shortcut to add a PUT route.
175 173
      *
176
-     * @param null|string|array    $method as request methods
177 174
      * @param null|string|callable $action a callback handler for the route.
178 175
      *
179 176
      * @return class|array as new route(s), class if one added, else array.
@@ -188,7 +185,6 @@  discard block
 block discarded – undo
188 185
     /**
189 186
     * Shortcut to add a DELETE route.
190 187
      *
191
-     * @param null|string|array    $method as request methods
192 188
      * @param null|string|callable $action a callback handler for the route.
193 189
      *
194 190
      * @return class|array as new route(s), class if one added, else array.
@@ -207,7 +203,7 @@  discard block
 block discarded – undo
207 203
      * @param string               $rule   for this route
208 204
      * @param null|string|callable $action a callback handler for the route.
209 205
      *
210
-     * @return class|array as new route(s), class if one added, else array.
206
+     * @return Route as new route(s), class if one added, else array.
211 207
      */
212 208
     public function addInternal($rule, $action)
213 209
     {
@@ -222,7 +218,7 @@  discard block
 block discarded – undo
222 218
     /**
223 219
      * Get the route for the last route that was handled.
224 220
      *
225
-     * @return mixed
221
+     * @return string
226 222
      */
227 223
     public function getLastRoute()
228 224
     {
Please login to merge, or discard this patch.
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/Router.php 1 patch
Doc Comments   +2 added lines, -6 removed lines patch added patch discarded remove patch
@@ -143,7 +143,6 @@  discard block
 block discarded – undo
143 143
     /**
144 144
      * Shortcut to add a GET route.
145 145
      *
146
-     * @param null|string|array    $method as request methods
147 146
      * @param null|string|callable $action a callback handler for the route.
148 147
      *
149 148
      * @return class|array as new route(s), class if one added, else array.
@@ -158,7 +157,6 @@  discard block
 block discarded – undo
158 157
     /**
159 158
     * Shortcut to add a POST route.
160 159
      *
161
-     * @param null|string|array    $method as request methods
162 160
      * @param null|string|callable $action a callback handler for the route.
163 161
      *
164 162
      * @return class|array as new route(s), class if one added, else array.
@@ -173,7 +171,6 @@  discard block
 block discarded – undo
173 171
     /**
174 172
     * Shortcut to add a PUT route.
175 173
      *
176
-     * @param null|string|array    $method as request methods
177 174
      * @param null|string|callable $action a callback handler for the route.
178 175
      *
179 176
      * @return class|array as new route(s), class if one added, else array.
@@ -188,7 +185,6 @@  discard block
 block discarded – undo
188 185
     /**
189 186
     * Shortcut to add a DELETE route.
190 187
      *
191
-     * @param null|string|array    $method as request methods
192 188
      * @param null|string|callable $action a callback handler for the route.
193 189
      *
194 190
      * @return class|array as new route(s), class if one added, else array.
@@ -207,7 +203,7 @@  discard block
 block discarded – undo
207 203
      * @param string               $rule   for this route
208 204
      * @param null|string|callable $action a callback handler for the route.
209 205
      *
210
-     * @return class|array as new route(s), class if one added, else array.
206
+     * @return Route as new route(s), class if one added, else array.
211 207
      */
212 208
     public function addInternal($rule, $action)
213 209
     {
@@ -222,7 +218,7 @@  discard block
 block discarded – undo
222 218
     /**
223 219
      * Get the route for the last route that was handled.
224 220
      *
225
-     * @return mixed
221
+     * @return string
226 222
      */
227 223
     public function getLastRoute()
228 224
     {
Please login to merge, or discard this patch.