Completed
Push — master ( 1e6aeb...317699 )
by Vítor
02:45
created
src/Util/Routing/FlatRouteCollection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
      *
21 21
      * @param array $routes
22 22
      */
23
-    public function __construct(array $routes = [])
23
+    public function __construct(array $routes = [ ])
24 24
     {
25
-        $this->routes = [];
25
+        $this->routes = [ ];
26 26
         foreach ($routes as $route) {
27 27
             $this->addRoute($route);
28 28
         }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function addRoute(Route $route)
35 35
     {
36
-        $this->routes[$route->getName()] = $route;
36
+        $this->routes[ $route->getName() ] = $route;
37 37
     }
38 38
 
39 39
     /**
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function getRoute($routeName)
45 45
     {
46
-        if (!isset($this->routes[$routeName])) {
46
+        if (!isset($this->routes[ $routeName ])) {
47 47
             return;
48 48
         }
49 49
 
50
-        return $this->routes[$routeName];
50
+        return $this->routes[ $routeName ];
51 51
     }
52 52
 
53 53
     /**
Please login to merge, or discard this patch.