Passed
Branch master (217db8)
by Woody
03:16
created
Category
src/RouteCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function get(string $name): Route
25 25
     {
26
-        if (! $this->has($name)) {
26
+        if (!$this->has($name)) {
27 27
             throw Error\RouteNotSetException::from($name);
28 28
         }
29 29
 
Please login to merge, or discard this patch.
src/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 }
143 143
 
144 144
                 // Check if the parameter can be matched
145
-                if (! preg_match("~^{$part[1]}$~", strval($params[$part[0]]))) {
145
+                if (!preg_match("~^{$part[1]}$~", strval($params[$part[0]]))) {
146 146
                     throw Error\UriParameterInvalidException::from($part[0], $part[1]);
147 147
                 }
148 148
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 
193 193
     private function makeDispatcher(): Dispatcher
194 194
     {
195
-        return simpleDispatcher(function (RouteCollector $collector): void {
195
+        return simpleDispatcher(function(RouteCollector $collector): void {
196 196
             foreach ($this->routes as $route) {
197 197
                 $collector->addRoute($route->method(), $route->pattern(), $route);
198 198
             }
Please login to merge, or discard this patch.