Completed
Push — master ( 5597b1...ffcc16 )
by Mikael
05:02
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 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
      * Handle the action for the route.
106 106
      *
107 107
      * @param string                       $path the matched path
108
-     * @param ContainerInjectableInterface $di   container with services
108
+     * @param ContainerInterface $di   container with services
109 109
      *
110 110
      * @return mixed
111 111
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Anax\Route;
4 4
 
5 5
 use Anax\Commons\ContainerInjectableInterface;
6
-use Anax\Route\Exception\ConfigurationException;
7 6
 use Psr\Container\ContainerInterface;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
src/Route/RouteHandler.php 1 patch
Doc Comments   +4 added lines, -5 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
      */
@@ -158,7 +158,6 @@  discard block
 block discarded – undo
158 158
      *
159 159
      * @param string|array                 $action    base for the callable
160 160
      * @param array                        $arguments optional arguments
161
-     * @param ContainerInjectableInterface $di        container with services
162 161
      *
163 162
      * @return mixed as the result from the route handler.
164 163
      */
@@ -198,9 +197,9 @@  discard block
 block discarded – undo
198 197
     /**
199 198
      * Load callable as a service from the $di container.
200 199
      *
201
-     * @param string|array                 $action    base for the callable
200
+     * @param string[]                 $action    base for the callable
202 201
      * @param array                        $arguments optional arguments
203
-     * @param ContainerInjectableInterface $di        container with services
202
+     * @param ContainerInterface $di        container with services
204 203
      *
205 204
      * @return mixed as the result from the route handler.
206 205
      */
Please login to merge, or discard this patch.
config/router/710_development.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Anax\Route\Exception\NotFoundException;
4
-
5 3
 /**
6 4
  * Routes to ease development and debugging.
7 5
  */
Please login to merge, or discard this patch.