@@ -153,7 +153,7 @@ |
||
153 | 153 | */ |
154 | 154 | public function attribute($key, $value) |
155 | 155 | { |
156 | - if (! in_array($key, $this->allowedAttributes)) { |
|
156 | + if (!in_array($key, $this->allowedAttributes)) { |
|
157 | 157 | throw new \InvalidArgumentException("Attribute [{$key}] does not exist."); |
158 | 158 | } |
159 | 159 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $router = $this->app->make('router'); |
38 | 38 | |
39 | - $this->app->singleton('georoutes.callbacks', function () { |
|
39 | + $this->app->singleton('georoutes.callbacks', function() { |
|
40 | 40 | $registrar = new CallbackRegistrar(); |
41 | 41 | $registrar->loadCallbacks(config('geo-routes.routes.callbacks')); |
42 | 42 | |
@@ -71,23 +71,23 @@ discard block |
||
71 | 71 | */ |
72 | 72 | protected function registerMacros() |
73 | 73 | { |
74 | - Route::macro('allowFrom', function (string ...$countries) { |
|
74 | + Route::macro('allowFrom', function(string ...$countries) { |
|
75 | 75 | return new GeoRoute($this, $countries, 'allow'); |
76 | 76 | }); |
77 | 77 | |
78 | - Route::macro('denyFrom', function (string ...$countries) { |
|
78 | + Route::macro('denyFrom', function(string ...$countries) { |
|
79 | 79 | return new GeoRoute($this, $countries, 'deny'); |
80 | 80 | }); |
81 | 81 | |
82 | - Route::macro('from', function (string ...$countries) { |
|
82 | + Route::macro('from', function(string ...$countries) { |
|
83 | 83 | return new GeoRoute($this, $countries, 'allow'); |
84 | 84 | }); |
85 | 85 | |
86 | - Route::macro('geo', function (array $attributes, Closure $routes) { |
|
86 | + Route::macro('geo', function(array $attributes, Closure $routes) { |
|
87 | 87 | return new GeoGroup($attributes, $routes); |
88 | 88 | }); |
89 | 89 | |
90 | - Router::macro('geo', function (array $attributes, Closure $routes) { |
|
90 | + Router::macro('geo', function(array $attributes, Closure $routes) { |
|
91 | 91 | return new GeoGroup($attributes, $routes); |
92 | 92 | }); |
93 | 93 | } |