Completed
Branch master (ccc1b8)
by Patrick
02:10
created
src/Adapters/Router.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     }
30 30
 
31 31
     /**
32
-     * @return RouteCollection|Route[]
32
+     * @return RouteCollection
33 33
      */
34 34
     public function all() : RouteCollection
35 35
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
      */
141 141
     public function match($methods, $uri, $action)
142 142
     {
143
-        return $this->addRoute(array_map('strtoupper', (array)$methods), $uri, $action);
143
+        return $this->addRoute(array_map('strtoupper', (array) $methods), $uri, $action);
144 144
     }
145 145
 
146 146
     /**
Please login to merge, or discard this patch.
src/Providers/FastRouteProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function getDefinitions() : array
35 35
     {
36 36
         return [
37
-            RouteDispatcherInterface::class => function ($container) {
37
+            RouteDispatcherInterface::class => function($container) {
38 38
 
39 39
                 $method = new MethodParameterResolver($container);
40 40
 
Please login to merge, or discard this patch.
src/Adapters/FastRoute/RouteDispatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 $route->bind($routeInfo[2]);
61 61
         }
62 62
 
63
-        return $this->dispatcher->dispatch($route, function ($response) {
63
+        return $this->dispatcher->dispatch($route, function($response) {
64 64
             return $response;
65 65
         });
66 66
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     private function createDispatcher()
72 72
     {
73
-        return \FastRoute\simpleDispatcher(function (RouteCollector $collector) {
73
+        return \FastRoute\simpleDispatcher(function(RouteCollector $collector) {
74 74
             foreach ($this->collection as $route) {
75 75
                 $collector->addRoute($route->methods(), $route->uri(), $route);
76 76
             }
Please login to merge, or discard this patch.
src/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     public function __construct($methods, $uri, $action)
45 45
     {
46 46
         $this->setUri($uri);
47
-        $this->methods         = (array)$methods;
47
+        $this->methods = (array) $methods;
48 48
 
49 49
         $this->action = $this->parseAction($action);
50 50
 
Please login to merge, or discard this patch.