Completed
Push — master ( 66292f...50f6f9 )
by Mikael
02:01
created
src/Route/RouteMatcher.php 2 patches
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.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Anax\Route;
4 4
 
5
-use Anax\Commons\ContainerInjectableInterface;
6
-use Anax\Route\Exception\ConfigurationException;
7
-
8 5
 /**
9 6
  * Matching a incoming path to see it it matches a route.
10 7
  */
Please login to merge, or discard this patch.
src/Route/Route.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      * Handle the action for the route.
108 108
      *
109 109
      * @param string                       $path the matched path
110
-     * @param ContainerInjectableInterface $di   container with services
110
+     * @param ContainerInterface $di   container with services
111 111
      *
112 112
      * @return mixed
113 113
      */
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     /**
255 255
      * Get the handler type as a informative string.
256 256
      *
257
-     * @param ContainerInjectableInterface $di container with services
257
+     * @param ContainerInterface $di container with services
258 258
      *
259 259
      * @return string representing the handler.
260 260
      */
Please login to merge, or discard this patch.
src/Route/RouteHandler.php 1 patch
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @param string                       $method    the request method.
26 26
      * @param string                       $path      that was matched.
27
-     * @param string|array                 $action    base for the callable.
27
+     * @param callable|null                 $action    base for the callable.
28 28
      * @param array                        $arguments optional arguments.
29
-     * @param ContainerInjectableInterface $di        container with services.
29
+     * @param ContainerInterface $di        container with services.
30 30
      *
31 31
      * @return mixed as the result from the route handler.
32 32
      */
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * Get  an informative string representing the handler type.
74 74
      *
75
-     * @param string|array                 $action    base for the callable.
76
-     * @param ContainerInjectableInterface $di        container with services.
75
+     * @param callable|null                 $action    base for the callable.
76
+     * @param ContainerInterface $di        container with services.
77 77
      *
78 78
      * @return string as the type of handler.
79 79
      */
@@ -201,7 +201,6 @@  discard block
 block discarded – undo
201 201
      *
202 202
      * @param string|array                 $action    base for the callable
203 203
      * @param array                        $arguments optional arguments
204
-     * @param ContainerInjectableInterface $di        container with services
205 204
      *
206 205
      * @return mixed as the result from the route handler.
207 206
      */
@@ -241,9 +240,9 @@  discard block
 block discarded – undo
241 240
     /**
242 241
      * Load callable as a service from the $di container.
243 242
      *
244
-     * @param string|array                 $action    base for the callable
243
+     * @param string[]                 $action    base for the callable
245 244
      * @param array                        $arguments optional arguments
246
-     * @param ContainerInjectableInterface $di        container with services
245
+     * @param ContainerInterface $di        container with services
247 246
      *
248 247
      * @return mixed as the result from the route handler.
249 248
      */
Please login to merge, or discard this patch.