Completed
Push — master ( f8a779...4a1f4a )
by Patrick
08:05
created
src/Adapters/Router.php 1 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/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/Providers/FastRouteProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public function getDefinitions() : array
36 36
     {
37 37
         return [
38
-            RouteDispatcherInterface::class => function (Container $container) {
38
+            RouteDispatcherInterface::class => function(Container $container) {
39 39
 
40 40
                 $method = new MethodParameterResolver($container);
41 41
 
Please login to merge, or discard this patch.
src/Exceptions/MethodNotAllowedException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function __construct($methods, $status = 500, $code = 0, Throwable $previous = null)
16 16
     {
17
-        $message = 'Method ' . '[' . implode($methods, ', ') . '] is not allowed';
17
+        $message = 'Method '.'['.implode($methods, ', ').'] is not allowed';
18 18
         parent::__construct($message, $status, $code, $previous);
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
src/Loaders/LoadRoutesFromFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     {
31 31
         foreach ($this->paths as $path) {
32 32
             if (!file_exists($path)) {
33
-                throw new InvalidArgumentException('Route file does not exist at [' . $path . ']');
33
+                throw new InvalidArgumentException('Route file does not exist at ['.$path.']');
34 34
             }
35 35
 
36 36
             include_once $path;
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
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
      */
124 124
     public function setUri(string $uri)
125 125
     {
126
-        $this->uri = '/' . trim($uri, '/');
126
+        $this->uri = '/'.trim($uri, '/');
127 127
     }
128 128
 
129 129
     /**
Please login to merge, or discard this patch.