@@ -20,9 +20,9 @@ discard block |
||
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 |
||
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 |
||
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 | /** |