Completed
Push — master ( 7bd00e...0ce6e5 )
by Marco
02:04
created
src/MJanssen/Provider/RoutingServiceProvider.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,6 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * Adds a route, a given route-name (for named routes) and all of its methods
89 89
      *
90
-     * @param Container $app
91 90
      * @param array $route
92 91
      * @throws InvalidArgumentException
93 92
      */
@@ -150,7 +149,7 @@  discard block
 block discarded – undo
150 149
     /**
151 150
      * @param Controller $controller
152 151
      * @param $actions
153
-     * @param $type
152
+     * @param string $type
154 153
      * @throws \InvalidArgumentException
155 154
      */
156 155
     protected function addActions(Controller $controller, $actions, $type)
@@ -232,7 +231,7 @@  discard block
 block discarded – undo
232 231
      * Adds a before/after middleware by its configuration
233 232
      *
234 233
      * @param Controller $controller
235
-     * @param $type
234
+     * @param string $type
236 235
      * @param $value
237 236
      */
238 237
     protected function addMiddlewareFromConfig(Controller $controller, $type, $value)
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,15 +3,13 @@
 block discarded – undo
3 3
 
4 4
 use InvalidArgumentException;
5 5
 use MJanssen\Route\Factory;
6
-use MJanssen\Route\Name;
7
-use MJanssen\Route\Route;
8
-use RuntimeException;
9
-use Silex\Application;
10
-use Silex\Controller;
11
-use Pimple\ServiceProviderInterface;
12 6
 use Pimple\Container;
7
+use Pimple\ServiceProviderInterface;
8
+use RuntimeException;
13 9
 use Silex\Api\BootableProviderInterface;
14 10
 use Silex\Api\EventListenerProviderInterface;
11
+use Silex\Application;
12
+use Silex\Controller;
15 13
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
16 14
 
17 15
 /**
Please login to merge, or discard this patch.
src/MJanssen/Route/Route.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -38,12 +38,12 @@  discard block
 block discarded – undo
38 38
     private $values = [];
39 39
 
40 40
     /**
41
-     * @param array $methods
42
-     * @param string $pattern
43
-     * @param string $controller
44
-     * @param array $asserts
45
-     * @param array $values
46
-     * @param string $name
41
+     * @param Methods $methods
42
+     * @param Pattern $pattern
43
+     * @param Controller $controller
44
+     * @param Asserts $asserts
45
+     * @param Values $values
46
+     * @param Name $name
47 47
      */
48 48
     public function __construct(
49 49
         Methods $methods,
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     }
79 79
 
80 80
     /**
81
-     * @return Pattern
81
+     * @return string
82 82
      */
83 83
     public function getPattern()
84 84
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     }
87 87
 
88 88
     /**
89
-     * @return Controller
89
+     * @return string
90 90
      */
91 91
     public function getController()
92 92
     {
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 MJanssen\Route;
4 4
 
5
-use InvalidArgumentException;
6
-use MJanssen\Assert\Method;
7
-
8 5
 class Route
9 6
 {
10 7
     /**
Please login to merge, or discard this patch.